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