### Question:
MapBatchInsertBuilder { public List<? extends Sql<?>> getSqls() { return executor.getSqls(); } private  MapBatchInsertBuilder(Config config, String tableName); static MapBatchInsertBuilder newInstance(Config config, String tableName); @SuppressWarnings("unchecked") int[] execute(Iterable<? extends Map<String, Object>> parameter); void queryTimeout(int queryTimeout); void sqlLogType(SqlLogType sqlLogType); void batchSize(int batchSize); void callerClassName(String className); void callerMethodName(String methodName); List<? extends Sql<?>> getSqls();  }### Answer:
@SuppressWarnings("serial") @Test public void testGetSqls() { MapBatchInsertBuilder builder = MapBatchInsertBuilder.newInstance(new MockConfig(), "Emp"); List<LinkedHashMap<String, Object>> employees = new ArrayList<LinkedHashMap<String, Object>>() { { add( new LinkedHashMap<String, Object>() { { put("name", "SMITH"); put("salary", 1001); } }); add( new LinkedHashMap<String, Object>() { { put("name", "ALLEN"); put("salary", 2001); } }); } }; builder.execute(employees); String expectedSql = String.format("insert into Emp" + " (name, salary)%n" + "values (?, ?)"); List<? extends Sql<?>> sqls = builder.getSqls(); assertEquals(2, sqls.size()); assertEquals(expectedSql, sqls.get(0).getRawSql()); List<? extends SqlParameter> parameters0 = sqls.get(0).getParameters(); assertEquals(2, parameters0.size()); assertEquals("SMITH", parameters0.get(0).getValue()); assertEquals(1001, parameters0.get(1).getValue()); assertEquals(expectedSql, sqls.get(1).getRawSql()); List<? extends SqlParameter> parameters1 = sqls.get(1).getParameters(); assertEquals(2, parameters1.size()); assertEquals("ALLEN", parameters1.get(0).getValue()); assertEquals(2001, parameters1.get(1).getValue()); }