out.close();
final IndexInput in = dir.openInput("out.bin", IOContext.DEFAULT);
final BlockPackedReaderIterator it = new BlockPackedReaderIterator(in, PackedInts.VERSION_CURRENT, blockSize, valueCount);
it.skip(valueOffset);
assertEquals(value, it.next());
in.seek(0L);
final BlockPackedReader reader = new BlockPackedReader(in, PackedInts.VERSION_CURRENT, blockSize, valueCount, random().nextBoolean());
assertEquals(value, reader.get(valueOffset));
for (int i = 0; i < 5; ++i) {
final long offset = _TestUtil.nextLong(random(), 0, valueCount - 1);
if (offset == valueOffset) {