assertNotNull(vehicleTypes); assertEquals(2, vehicleTypes.size()); VehicleType vehType = vehicleTypes.get(Id.create("normal&Car", VehicleType.class)); assertNotNull(vehType); assertEquals(9.5, vehType.getLength(), EPSILON); assertEquals(3.0, vehType.getWidth(), EPSILON); assertEquals(42.0, vehType.getMaximumVelocity(), EPSILON); assertNotNull(vehType.getCapacity()); assertEquals(Integer.valueOf(5), vehType.getCapacity().getSeats()); assertEquals(Integer.valueOf(20), vehType.getCapacity().getStandingRoom()); assertNotNull(vehType.getCapacity().getFreightCapacity()); assertEquals(23.23, vehType.getCapacity().getFreightCapacity().getVolume(), EPSILON); assertNotNull(vehType.getEngineInformation()); assertEquals(EngineInformation.FuelType.diesel, vehType.getEngineInformation().getFuelType()); assertEquals(0.23, vehType.getEngineInformation().getGasConsumption(), EPSILON); assertNotNull(vehType); assertEquals(7.5, vehType.getLength(), EPSILON); assertEquals(1.0, vehType.getWidth(), EPSILON); assertNotNull(vehicles); assertEquals(3, vehicles.size()); assertNotNull(vehicles.get(id23)); assertEquals(id23, vehicles.get(id23).getId()); assertEquals(Id.create("normal&Car", VehicleType.class), vehicles.get(id23).getType().getId()); assertNotNull(vehicles.get(id42)); assertEquals(id42, vehicles.get(id42).getId());