### Question:
RouteRuleDao { protected void insertOrUpdate(RouteRuleModel... models) { insertOrUpdate(Lists.newArrayList(models)); }  List<RouteRuleModel> query(); List<RouteRuleModel> select(RouteRuleModel filter); List<RouteRuleModel> select(List<Long> groupIds); static final RouteRuleDao INSTANCE; }### Answer:
@Test public void testInsertOrUpdate() { RouteRuleModel routeRule = newRouteRule(); routeRuleDao.insertOrUpdate(routeRule); assertRouteRule(routeRule, query(routeRule)); routeRuleDao.insertOrUpdate(routeRule); assertRouteRule(routeRule, query(routeRule)); }