writer.endShard();
byte[] writtenData = arrayOutputWriter.toByteArray();
for (int i = 0; i < 11 * 10; i++) {
byte[] toRead = Arrays.copyOf(writtenData, i);
ByteArrayInputStream arrayInputStream = new ByteArrayInputStream(toRead);
LevelDbInputReader reader =
new TestLevelDbInputReader(Channels.newChannel(arrayInputStream), overriddenBlockSize);
try {
verifyWrittenData(written, reader);
fail();
} catch (CorruptDataException | NoSuchElementException e) {