@Test public void testNext() throws Exception {

  List<byte[]> actual = new ArrayList<>();
  while (dictionaryChunksWrapper.hasNext()) {
    actual.add(dictionaryChunksWrapper.next());
  }
  Assert.assertEquals(expectedData.size(), actual.size());
  for (int i = 0; i < expectedData.size(); i++) {
    Assert.assertArrayEquals(actual.get(i), expectedData.get(i));
  }
}