ParserResult result1 = parser.read(new File(TEST_PATH + "from.itn"), formats);
assertFalse(result1.isSuccessful());
formats.add(new TomTom8RouteFormat());
ParserResult result2 = parser.read(new File(TEST_PATH + "from.itn"), formats);
assertFalse(result2.isSuccessful());
formats.add(new TomTom5RouteFormat());
ParserResult result3 = parser.read(new File(TEST_PATH + "from.itn"), formats);
assertTrue(result3.isSuccessful());
assertEquals(result3.getFormat().getClass(), TomTom5RouteFormat.class);
}