@Override public double getLength() { return vType.getLength(); }
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); assertEquals(7.5, vehType.getLength(), EPSILON); assertEquals(1.0, vehType.getWidth(), EPSILON); assertTrue(Double.isInfinite(vehType.getMaximumVelocity()));