@Override
    public String toString() {
        return getClass().getSimpleName();
    }
@Test
    public void testRoadClassInfo() {
        GraphHopper gh = new GraphHopper() {
            @Override
            protected File _getOSMFile() {
                return new File(getClass().getResource(file2).getFile());
            }
        }.setOSMFile("dummy").
                setEncodedValuesString("car_access,car_average_speed").
                setProfiles(TestProfiles.accessAndSpeed("profile", "car")).
                setMinNetworkSize(0).
                setGraphHopperLocation(dir).
                importOrLoad();

        GHResponse response = gh.route(new GHRequest(51.2492152, 9.4317166, 52.133, 9.1)
                .setProfile("profile")
                .setPathDetails(Collections.singletonList(RoadClass.KEY)));
        assertFalse(response.hasErrors(), response.getErrors().toString());
        List<PathDetail> list = response.getBest().getPathDetails().get(RoadClass.KEY);
        assertEquals(3, list.size());
        assertEquals("motorway", list.get(0).getValue());

        response = gh.route(new GHRequest(51.2492152, 9.4317166, 52.133, 9.1)
                .setProfile("profile")
                .setPathDetails(Arrays.asList(Toll.KEY, Country.KEY)));
        Throwable ex = response.getErrors().get(0);
        assertEquals("Cannot find the path details: [toll, country]", ex.getMessage());
    }