@Override
    public void writeBytes(Slice source)
    {
        writeBytes(source, 0, source.length());
    }
@Test
    public void testWriteBytesEmptySlice()
    {
        OrcOutputBuffer orcOutputBuffer = createOrcOutputBuffer(new DataSize(256, KILOBYTE));
        orcOutputBuffer.writeBytes(EMPTY_SLICE); // EMPTY_SLICE has null byte buffer
        assertCompressedContent(orcOutputBuffer, new byte[0], ImmutableList.of());

        orcOutputBuffer = createOrcOutputBuffer(new DataSize(256, KILOBYTE));
        orcOutputBuffer.writeBytes(EMPTY_SLICE, 0, 0);
        assertCompressedContent(orcOutputBuffer, new byte[0], ImmutableList.of());
    }