### Question:
MapInsertBuilder { public Sql<?> getSql() { return builder.getSql(); } private  MapInsertBuilder(Config config, String tableName); static MapInsertBuilder newInstance(Config config, String tableName); int execute(Map<String, Object> parameter); void queryTimeout(int queryTimeout); void sqlLogType(SqlLogType sqlLogType); void callerClassName(String className); void callerMethodName(String methodName); Sql<?> getSql();  }### Answer:
@SuppressWarnings("serial") @Test public void testGetSql() { MapInsertBuilder builder = MapInsertBuilder.newInstance(new MockConfig(), "Emp"); builder.execute( new LinkedHashMap<String, Object>() { { put("name", "SMITH"); put("salary", 100); } }); String expectedSql = String.format("insert into Emp" + " (name, salary)%n" + "values (?, ?)"); assertEquals(expectedSql, builder.getSql().getRawSql()); List<? extends SqlParameter> parameters = builder.getSql().getParameters(); assertEquals(2, parameters.size()); assertEquals("SMITH", parameters.get(0).getValue()); assertEquals(100, parameters.get(1).getValue()); }