doReturn(new StringInputStream(sb.toString())).when(obj).getDataInputStream();
return obj;
}
}).when(s3).getObject(anyString(), anyString());
RecordParser recordParser = mock(RecordParser.class);
List<MessageContainer> messages = new ArrayList<MessageContainer>();
int numOfMessages = 5;
for (int i = 0; i < numOfMessages; ++i) {
messages.add(mock(MessageContainer.class));
}