### Question:
GroupDao { protected void insertOrUpdate(final GroupModel... groups) { insertOrUpdate(Lists.newArrayList(groups)); } private  GroupDao(); List<GroupModel> query(); List<GroupModel> select(GroupModel filter); List<GroupModel> select(List<Long> groupIds); static final GroupDao INSTANCE; }### Answer:
@Test public void testInsertOrUpdate() { GroupModel group = newGroup(); groupDao.insertOrUpdate(group); assertGroup(group, query(group)); groupDao.insertOrUpdate(group); assertGroup(group, query(group)); }