matrixBuilder.addTransportDistance("to", "from", 1.);
matrixBuilder.addTransportTime("to", "from", 2.);
VehicleRoutingTransportCostsMatrix matrix = matrixBuilder.build();
Vehicle vehicle = mock(Vehicle.class);
VehicleType type = VehicleTypeImpl.Builder.newInstance("t").setCostPerDistance(1.).setCostPerTime(0.).build();
when(vehicle.getType()).thenReturn(type);
assertEquals(1.,matrix.getDistance("from", "to"),0.1);
assertEquals(1.,matrix.getDistance("to", "from"),0.1);
assertEquals(1.,matrix.getTransportCost("from", "to", 0.0, null, vehicle),0.1);
assertEquals(1.,matrix.getTransportCost("to", "from", 0.0, null, vehicle),0.1);
}