RouteServiceImpl implements RouteService { @Override public void deleteRoute(long id) { routeDao.delete(id); }  @Override List<RouteTbl> getActiveRouteTbls(); @Override List<RouteModel> getAllRoutes(); @Override List<RouteModel> getActiveRoutes(); @Override void updateRoute(RouteModel model); @Override void deleteRoute(long id); @Override void addRoute(RouteModel model); @Override boolean existsRouteBetweenDc(String activeDc, String backupDc);  }
@Test public void testDeleteRoute() { service.deleteRoute(route2.getId()); Assert.assertEquals(1, service.getAllRoutes().size()); }