assertTrue("HasNext should not consume data",kafkaSource.hasNext());
}
public void testNext() {
assertTrue("HasNext should return true when data", kafkaSource.hasNext());
Mupd8DataPair mupd8DataPair = kafkaSource.getNextDataPair();
assertEquals("Next should return the correct message",val,mupd8DataPair._key.toString());
produceNonJsonMessage();
mupd8DataPair = kafkaSource.getNextDataPair();
assertEquals("Next should return the next correct message",val, new String(mupd8DataPair._value));
assertNull("Next should return the null val for missing key", mupd8DataPair._key);