ReflectionUtils.newInstance(reader.getKeyClass(), conf);
Writable writableValue = (Writable)
ReflectionUtils.newInstance(reader.getValueClass(), conf);
List<IntWritable> expectedOutputForValue = new ArrayList<IntWritable>();
expectedOutputForValue.add(new IntWritable(1));
expectedOutputForValue.add(new IntWritable(1));
int count = 0;
while (reader.next(writableKey, writableValue)) {
logger.debug("Key and value is: " + writableKey + ", " + writableValue);
assertTrue("Matched output " + writableValue , expectedOutputForValue.contains(writableValue));