FoldedByteArrayIndexedList implements ByteArrayIndexedList { @Override public String toString() { return "FoldedByteArrayIndexedList{" + "elementsCount=" + docIdOffsetIndex.length + '}'; } FoldedByteArrayIndexedList(
            @NotNull final Map<UnsignedByteArray, List<Integer>> elements,
            final int databaseDocumentsCount); @Override String toString(); @Override long getSizeInBytes(); @Override void writeTo(
            @NotNull final OutputStream os);  }
@Test public void string() { final List<UnsignedByteArray> elements = new LinkedList<>(); final int size = 10; for (int i = 0; i < size; i++) elements.add(from(i)); final ByteArrayIndexedList set = new FoldedByteArrayIndexedList(initData(elements), elements.size()); final String text = set.toString(); assertTrue(text.contains(Integer.toString(size))); }