}
@Test
public void testChangeRoute() throws IOException {
getFirstVehicle();
Vehicle v = firstVehicle;
List<Edge> newRoute = new ArrayList<Edge>();
newRoute.add(conn.getEdgeRepository().getByID("beg"));
newRoute.add(conn.getEdgeRepository().getByID("beg2left"));
newRoute.add(conn.getEdgeRepository().getByID("left"));
newRoute.add(conn.getEdgeRepository().getByID("left2end"));
ChangeRouteQuery crq = v.queryChangeRoute();
crq.setValue(newRoute);
crq.run();
assertEquals(newRoute, v.queryReadCurrentRoute().get());
}