### Question:
Block implements SeekingIterable<Slice, Slice> { public long size() { return block.length(); } Block(Slice block, Comparator<Slice> comparator); long size(); @Override BlockIterator iterator();  }### Answer:
@Test public void testMultipleEntriesWithNonSharedKeyAndRestartPositions() throws Exception { List<BlockEntry> entries = asList( BlockHelper.createBlockEntry("ale", "Lagunitas Little Sumpin’ Sumpin’"), BlockHelper.createBlockEntry("ipa", "Lagunitas IPA"), BlockHelper.createBlockEntry("stout", "Lagunitas Imperial Stout"), BlockHelper.createBlockEntry("strong", "Lagavulin")); for (int i = 1; i < entries.size(); i++) { blockTest(i, entries); } }
@Test public void testMultipleEntriesWithSharedKeyAndRestartPositions() throws Exception { List<BlockEntry> entries = asList( BlockHelper.createBlockEntry("beer/ale", "Lagunitas Little Sumpin’ Sumpin’"), BlockHelper.createBlockEntry("beer/ipa", "Lagunitas IPA"), BlockHelper.createBlockEntry("beer/stout", "Lagunitas Imperial Stout"), BlockHelper.createBlockEntry("scotch/light", "Oban 14"), BlockHelper.createBlockEntry("scotch/medium", "Highland Park"), BlockHelper.createBlockEntry("scotch/strong", "Lagavulin")); for (int i = 1; i < entries.size(); i++) { blockTest(i, entries); } }