}
public void testWASDefect330118() throws Exception {
// Create the group and set common connection
CommandGroup commandGroup = CommandGroup.FACTORY
.createCommandGroup(getConfig("CustomersOrdersConfig.xml"));
commandGroup.setConnection(getConnection());
// Read all customers and add one
Command read = commandGroup.getCommand("all customers");
DataObject root = read.executeQuery();
int numCustomers = root.getList("CUSTOMER").size();
DataObject newCust = root.createDataObject("CUSTOMER");
newCust.set("ID", new Integer(100));
newCust.set("ADDRESS", "5528 Wells Fargo Drive");
newCust.set("LASTNAME", "Gerkin");
// Now delete this new customer
newCust.delete();
ApplyChangesCommand apply = commandGroup.getApplyChangesCommand();
apply.execute(root);
// Verify
root = read.executeQuery();
assertEquals(numCustomers, root.getList("CUSTOMER").size());