VARCHAR.writeString(expectedBlockBuilder, "dave");
Block expectedBlock = expectedBlockBuilder.build();
DynamicSliceOutput sliceOutput = new DynamicSliceOutput(1024);
BlockEncoding blockEncoding = new VariableWidthBlockEncoding();
blockEncoding.writeBlock(sliceOutput, expectedBlock);
Block actualBlock = blockEncoding.readBlock(sliceOutput.slice().getInput());
BlockAssertions.assertBlockEquals(VARCHAR, actualBlock, expectedBlock);
}
@Test