assertEquals(3, events.size());
assertTrue(events.get(0) instanceof RootInputUpdatePayloadEvent);
assertTrue(events.get(1) instanceof RootInputDataInformationEvent);
assertTrue(events.get(2) instanceof RootInputDataInformationEvent);
RootInputDataInformationEvent diEvent1 = (RootInputDataInformationEvent) (events.get(1));
RootInputDataInformationEvent diEvent2 = (RootInputDataInformationEvent) (events.get(2));
assertNull(diEvent1.getDeserializedUserPayload());
assertNull(diEvent2.getDeserializedUserPayload());
assertNotNull(diEvent1.getUserPayload());
assertNotNull(diEvent2.getUserPayload());
MRSplitProto event1Proto = MRSplitProto.parseFrom(diEvent1.getUserPayload());
InputSplit is1 = MRInput.getOldSplitDetailsFromEvent(event1Proto, new Configuration());
assertTrue(is1 instanceof InputSplitForTest);
assertEquals(1, ((InputSplitForTest) is1).identifier);
MRSplitProto event2Proto = MRSplitProto.parseFrom(diEvent2.getUserPayload());
InputSplit is2 = MRInput.getOldSplitDetailsFromEvent(event2Proto, new Configuration());
assertTrue(is2 instanceof InputSplitForTest);
assertEquals(2, ((InputSplitForTest) is2).identifier);
}