### Question:
BatchUpdateExecutor { public static BatchUpdateExecutor newInstance(Config config) { if (config == null) { throw new DomaNullPointerException("config"); } return new BatchUpdateExecutor(config); } private  BatchUpdateExecutor(Config config); static BatchUpdateExecutor newInstance(Config config); void queryTimeout(int queryTimeout); void sqlLogType(SqlLogType sqlLogType); void batchSize(int batchSize); void callerClassName(String className); void callerMethodName(String methodName); int[] execute(Iterable<P> params, BiConsumer<P, BatchBuilder> buildConsumer); List<? extends Sql<?>> getSqls();  }### Answer:
@Test public void testChangeType() { SqlBatchUpdateQuery query = mockQuery(); BatchBuilder builder = BatchBuilder.newInstance(query); builder.sql("update Emp"); builder.sql("set"); builder.sql("name = ").param(String.class, "SMITH").sql(","); builder.sql("salary = ").param(BigDecimal.class, new BigDecimal("1000")); builder.sql("where"); builder.sql("ID = ").param(int.class, 10); builder = builder.fixSql(); builder.sql("update Emp"); builder.sql("set"); builder.sql("name = ").param(String.class, "ALLEN").sql(","); builder = builder.sql("salary = "); try { builder.param(int.class, 2000); } catch (JdbcException e) { assertEquals(Message.DOMA2229, e.getMessageResource()); return; } fail(); }
@Test public void testParamToLiteral() { SqlBatchUpdateQuery query = mockQuery(); BatchBuilder builder = BatchBuilder.newInstance(query); builder.sql("update Emp"); builder.sql("set"); builder.sql("name = ").param(String.class, "SMITH").sql(","); builder.sql("salary = ").param(BigDecimal.class, new BigDecimal("1000")); builder.sql("where"); builder.sql("ID = ").param(int.class, 10); builder = builder.fixSql(); builder.sql("update Emp"); builder.sql("set"); builder = builder.sql("name = "); try { builder.literal(String.class, "ALLEN"); } catch (JdbcException e) { assertEquals(Message.DOMA2230, e.getMessageResource()); return; } fail(); }