@Test
public final void testLowestFrcRouting() {

    try {
        TestData td = TestData.getInstance();
        MapDatabase mdb = td.getMapDatabase();
        RouteSearch rs = new RouteSearch(Arrays.asList(mdb.getLine(1), mdb.getLine(3), mdb.getLine(5), mdb.getLine(8)));
        RouteSearchResult result = rs.calculateRoute();
        assertEquals(1, result.getIntermediatePos());
    } catch (Exception e) {
        fail("Wrong error detected: " + e.getMessage());
    }
}