### Question:
RouteRuleGroupDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); }  List<RouteRuleGroupModel> query(); RouteRuleGroupModel generateGroup(RouteRuleGroupModel routeRuleGroup); List<RouteRuleGroupModel> select(RouteRuleGroupModel filter); List<RouteRuleGroupModel> select(List<Long> groupIds); static final RouteRuleGroupDao INSTANCE; }### Answer:
@Test public void testDelete() { for (RouteRuleGroupModel routeRuleGroup : newRouteRuleGroups()) { routeRuleGroupDao.insertOrUpdate(routeRuleGroup); RouteRuleGroupModel copy = query(routeRuleGroup); routeRuleGroupDao.delete(copy.getId()); Assert.assertNull(query(routeRuleGroup, 0)); } }