### Question:
GroupOperationLogDao { public void insert(final GroupOperationLogModel... logs) { if ((logs == null) || (logs.length == 0)) { return; } this.insert(Lists.newArrayList(logs)); } private  GroupOperationLogDao(); List<GroupOperationLog> select(GroupOperationLogModel filter, Boolean complete); List<GroupOperationLog> query(final String condition, final List<Object> args); void insert(final GroupOperationLogModel... logs); void insert(final List<GroupOperationLogModel> logs); static final GroupOperationLogDao INSTANCE; }### Answer:
@Test public void testInsert() { final GroupOperationLogModel log1 = newModel(); final GroupOperationLogModel log2 = newModel(); log1.setComplete(true); log2.setComplete(true); final List<GroupOperationLogModel> logs = Lists.newArrayList(log1, log2); groupOperationLogDao.insert(log1, log2); for (final GroupOperationLogModel log : logs) { final List<GroupOperationLog> logModels = query(log); Assert.assertEquals(1, logModels.size()); assertLog(log, logModels.get(0)); } log1.setComplete(false); log2.setComplete(false); groupOperationLogDao.insert(log1, log2); for (final GroupOperationLogModel log : logs) { final List<GroupOperationLog> logModels = query(log); Assert.assertEquals(1, logModels.size()); assertLog(log, logModels.get(0)); } }