// test that there is no delete query issued when a flattened join is first
// added and then deleted AND there are some other changes (CAY-548)
a1.removeFromGroupArray(g1);
MockDataNode nodeWrapper = MockDataNode.interceptNode(
runtime.getDataDomain(),
runtime.getDataDomain().getDataNodes().iterator().next());
try {
context.commitChanges();
}
finally {
nodeWrapper.stopInterceptNode();
}
assertEquals(1, nodeWrapper.getRunCount());
}