public boolean isFound() {
        return found;
    }
@Test
    public void testCalcAverageSpeedDetails() {
        Weighting weighting = new SpeedWeighting(carAvSpeedEnc);

        Path p = new Dijkstra(pathDetailGraph, weighting, TraversalMode.NODE_BASED).calcPath(1, 5);
        assertTrue(p.isFound());

        Map<String, List<PathDetail>> details = PathDetailsFromEdges.calcDetails(p, carManager, weighting,
                List.of(AVERAGE_SPEED), new PathDetailsBuilderFactory(), 0, pathDetailGraph);
        assertEquals(1, details.size());

        List<PathDetail> averageSpeedDetails = details.get(AVERAGE_SPEED);
        assertEquals(4, averageSpeedDetails.size());
        assertEquals(162.2, (double) averageSpeedDetails.get(0).getValue(), 1.e-3);
        assertEquals(327.3, (double) averageSpeedDetails.get(1).getValue(), 1.e-3);
        assertEquals(36.0, (double) averageSpeedDetails.get(2).getValue(), 1.e-3);
        assertEquals(162.2, (double) averageSpeedDetails.get(3).getValue(), 1.e-3);

        assertEquals(0, averageSpeedDetails.get(0).getFirst());
        assertEquals(1, averageSpeedDetails.get(1).getFirst());
        assertEquals(2, averageSpeedDetails.get(2).getFirst());
        assertEquals(3, averageSpeedDetails.get(3).getFirst());
        assertEquals(4, averageSpeedDetails.get(3).getLast());
    }