RunLengthEncodedBlock expectedBlock = new RunLengthEncodedBlock(value, 11);
DynamicSliceOutput sliceOutput = new DynamicSliceOutput(1024);
RunLengthBlockEncoding blockEncoding = new RunLengthBlockEncoding(new VariableWidthBlockEncoding());
blockEncoding.writeBlock(sliceOutput, expectedBlock);
RunLengthEncodedBlock actualBlock = blockEncoding.readBlock(sliceOutput.slice().getInput());
assertTrue(positionEqualsPosition(VARCHAR, actualBlock, 0, expectedBlock, 0));
BlockAssertions.assertBlockEquals(VARCHAR, actualBlock, expectedBlock);
}