SSTable.PositionSize info = entry.getValue();
long nextIndexPosition = kp.indexPosition + 2 + FBUtilities.encodedUTF8Length(StorageService.getPartitioner().convertToDiskFormat(kp.key)) + 8;
BufferedRandomAccessFile indexFile = new BufferedRandomAccessFile(sstable.indexFilename(), "r");
indexFile.seek(nextIndexPosition);
String nextKey = indexFile.readUTF();
BufferedRandomAccessFile file = new BufferedRandomAccessFile(sstable.getFilename(), "r");
file.seek(info.position + info.size);
assertEquals(nextKey, file.readUTF());
}