CountDownLatch latch = this.depTracker.getDependencyLatch(this.ts);
assertEquals(nextBatch.length, latch.getCount());
WorkFragment.Builder fragment = CollectionUtil.first(ftasks);
Collection<Column> outputCols = PlanNodeUtil.getOutputColumnsForStatement(nextBatch[0].getStatement());
VoltTable result = CatalogUtil.getVoltTable(outputCols);
result.addRow(VoltTableUtil.getRandomRow(result));
this.depTracker.addResult(this.ts,
fragment.getPartitionId(),
fragment.getOutputDepId(0),
result);
assertEquals(nextBatch.length-1, latch.getCount());