for (Slice expectedValue : expectedValues) {
if (expectedValue == null) {
blockBuilder.appendNull();
}
else {
blockBuilder.writeBytes(expectedValue, 0, expectedValue.length()).closeEntry();
}
}
assertBlock(blockBuilder, expectedValues);
assertBlock(blockBuilder.build(), expectedValues);
}