DictionaryChunksWrapper implements Iterator<byte[]> { public int getSize() { return size; } DictionaryChunksWrapper(List<List<byte[]>> dictionaryChunks); @Override boolean hasNext(); @Override byte[] next(); @Override void remove(); int getSize();  }
@Test public void getSize() throws Exception { int size = dictionaryChunksWrapper.getSize(); Assert.assertEquals("", 4, size); }