RouteServiceImpl implements RouteService { @Override public void addRoute(RouteModel model) { DcIdNameMapper mapper = new DcIdNameMapper.DefaultMapper(dcService); routeDao.insert(model.toRouteTbl(mapper)); }  @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 testAddRoute() { RouteModel route3 = new RouteModel().setActive(false).setDstDcName(dcNames[0]).setSrcDcName(dcNames[1]) .setId(3).setOrgId(3L).setTag(Route.TAG_META).setSrcProxyIds("1,2,3").setDstProxyIds("4,5,6"); service.addRoute(route3); Assert.assertEquals(3, service.getAllRoutes().size()); }