for (long i = 0; i < 100; i++) {
source.process();
for (long j = batchSize; j > 0; j--) {
Event event = channel.take();
String expectedVal = String.valueOf(((i+1)*batchSize)-j);
String resultedVal = new String(event.getBody());
Assert.assertTrue("Expected " + expectedVal + " is not equals to " +
resultedVal, expectedVal.equals(resultedVal));
}