public void testAddRoute() throws IOException {
conn.nextSimStep();
final String id = "A_NEW_ROUTE";
AddRouteQuery arq = conn.queryAddRoute();
List<Edge> edges = new ArrayList<Edge>();
edges.add(conn.getEdgeRepository().getByID("beg"));
edges.add(conn.getEdgeRepository().getByID("beg2left"));
edges.add(conn.getEdgeRepository().getByID("left"));
edges.add(conn.getEdgeRepository().getByID("left2end"));
edges.add(conn.getEdgeRepository().getByID("end"));
arq.setVehicleData(id, edges);
arq.run();
assertTrue(conn.getRouteRepository().getAll().containsKey(id));
}