BitSet emptyPartitionBits = null;
// Verify the event returned
assertEquals(1, events.size());
assertTrue(events.get(0) instanceof CompositeDataMovementEvent);
CompositeDataMovementEvent cdme = (CompositeDataMovementEvent) events.get(0);
assertEquals(0, cdme.getSourceIndexStart());
assertEquals(numOutputs, cdme.getCount());
DataMovementEventPayloadProto eventProto =
DataMovementEventPayloadProto.parseFrom(ByteString.copyFrom(
cdme.getUserPayload()));
assertFalse(eventProto.hasData());
if (skippedPartitions == null && numRecordsWritten > 0) {
assertFalse(eventProto.hasEmptyPartitions());
emptyPartitionBits = new BitSet(numPartitions);
} else {