@Test
public void testTwoWeightsPerEdge() {
FlagEncoder encoder = new Bike2WeightFlagEncoder();
EncodingManager em = new EncodingManager(encoder);
AlgorithmOptions opts = AlgorithmOptions.start().
weighting(new FastestWeighting(encoder)).build();
GraphHopperStorage graph = createGHStorage(em, Arrays.asList(opts.getWeighting()), true);
initEleGraph(graph);
GHUtility.getEdge(graph, 0, 3).setFlags(encoder.setProperties(10, false, true));
Path p = createAlgo(graph, opts).
calcPath(0, 10);
assertEquals(85124371, p.getTime());
assertEquals(425622, p.getDistance(), 1);
assertEquals(85124.4, p.getWeight(), 1);
}