List<DbAttribute> idAttributes = Arrays.asList((DbAttribute) entity.getAttribute("LOCKING_TEST_ID"),
(DbAttribute) entity.getAttribute("NAME"));
Collection<String> nullAttributes = Collections.singleton("NAME");
DeleteBatchQuery deleteQuery = new DeleteBatchQuery(entity, idAttributes, nullAttributes, 1);
DbAdapter adapter = objectFactory.newInstance(DbAdapter.class, JdbcAdapter.class.getName());
DeleteBatchQueryBuilder builder = new DeleteBatchQueryBuilder(adapter);
String generatedSql = builder.createSqlString(deleteQuery);
assertNotNull(generatedSql);