// row 1
OrcStruct row = (OrcStruct) rows.next(null);
assertNotNull(row);
assertEquals(new IntWritable(3), row.getFieldValue(0));
assertEquals("a", row.getFieldValue(1).toString());
assertEquals(new BooleanWritable(true), row.getFieldValue(2));
assertEquals(new IntWritable(100),
((OrcStruct) ((ArrayList<?>) row.getFieldValue(3)).get(0)).
getFieldValue(0));
// row 2
row = (OrcStruct) rows.next(row);
assertNotNull(row);
assertNull(row.getFieldValue(0));
assertEquals("b", row.getFieldValue(1).toString());
assertEquals(new BooleanWritable(true), row.getFieldValue(2));
assertEquals(new IntWritable(100),
((OrcStruct) ((ArrayList<?>) row.getFieldValue(3)).get(0)).
getFieldValue(0));
// row 3
row = (OrcStruct) rows.next(row);
assertNotNull(row);
assertNull(row.getFieldValue(1));
assertEquals(new IntWritable(3), row.getFieldValue(0));
assertEquals(new BooleanWritable(false), row.getFieldValue(2));
assertEquals(new IntWritable(100),
((OrcStruct) ((ArrayList<?>) row.getFieldValue(3)).get(0)).
getFieldValue(0));
rows.close();
}