### Question:
BatchDeleteExecutor { public static BatchDeleteExecutor newInstance(Config config) { if (config == null) { throw new DomaNullPointerException("config"); } return new BatchDeleteExecutor(config); } private  BatchDeleteExecutor(Config config); static BatchDeleteExecutor 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() { SqlBatchDeleteQuery query = mockQuery(); BatchBuilder builder = BatchBuilder.newInstance(query); builder.sql("delete from Emp"); builder.sql("where"); builder.sql("name = ").param(String.class, "SMITH"); builder.sql("and"); builder.sql("salary = ").param(BigDecimal.class, new BigDecimal("1000")); builder = builder.fixSql(); builder.sql("delete from Emp"); builder.sql("where"); builder.sql("name = ").param(String.class, "ALLEN"); builder.sql("and"); builder = builder.sql("salary = "); try { builder.param(int.class, 2000); } catch (JdbcException e) { assertEquals(Message.DOMA2229, e.getMessageResource()); return; } fail(); }
@Test public void testParamToLiteral() { SqlBatchDeleteQuery query = mockQuery(); BatchBuilder builder = BatchBuilder.newInstance(query); builder.sql("delete from Emp"); builder.sql("where"); builder.sql("name = ").param(String.class, "SMITH"); builder.sql("and"); builder.sql("salary = ").param(BigDecimal.class, new BigDecimal("1000")); builder = builder.fixSql(); builder.sql("delete from Emp"); builder.sql("where"); builder = builder.sql("name = "); try { builder.literal(String.class, "ALLEN"); } catch (JdbcException e) { assertEquals(Message.DOMA2230, e.getMessageResource()); return; } fail(); }