@Test
public void testMultipleVehicles_issue548() {
FastestWeighting footWeighting = new FastestWeighting(footEncoder);
AlgorithmOptions footOptions = AlgorithmOptions.start().
weighting(footWeighting).build();
FastestWeighting carWeighting = new FastestWeighting(carEncoder);
AlgorithmOptions carOptions = AlgorithmOptions.start().
weighting(carWeighting).build();
GraphHopperStorage ghStorage = createGHStorage(encodingManager,
Arrays.asList(footOptions.getWeighting(), carOptions.getWeighting()), false);
initFootVsCar(ghStorage);
GHUtility.getEdge(ghStorage, 4, 6).setFlags(carEncoder.setProperties(20, false, false));
RoutingAlgorithm algoFoot = createFactory(ghStorage, footOptions).
createAlgo(getGraph(ghStorage, footWeighting), footOptions);
RoutingAlgorithm algoCar = createFactory(ghStorage, carOptions).
createAlgo(getGraph(ghStorage, carWeighting), carOptions);
Path p1 = algoCar.calcPath(0, 7);
assertEquals(IntArrayList.from(new int[]{0, 1, 5, 6, 7}), p1.calcNodes());
assertEquals(p1.toString(), 26000, p1.getDistance(), 1e-6);
}