@Test
public void testScrollWithNestedFields() throws IOException {
InputStream stream = getClass().getResourceAsStream("scroll-source-mapping.json");
Field fl = Field.parseField(new ObjectMapper().readValue(stream, Map.class));
ScrollReader reader = new ScrollReader(new JdkValueReader(), fl, readMetadata, metadataField);
stream = getClass().getResourceAsStream("scroll-source.json");
List<Object[]> read = reader.read(stream);
assertEquals(3, read.size());
Object[] objects = read.get(0);
assertTrue(((Map) objects[1]).containsKey("source"));
Map map = (Map) read.get(2)[1];