SQLAction action = adapter.getAction(template, node);
Connection c = dataSourceFactory.getSharedDataSource().getConnection();
try {
MockOperationObserver observer = new MockOperationObserver();
action.performAction(c, observer);
int[] batches = observer.countsForQuery(template);
assertNotNull(batches);
assertEquals(1, batches.length);
assertEquals(4, batches[0]);