public static void free(final DirectBuffer buffer)
    {
        if (null != buffer)
        {
            free(buffer.byteBuffer());
        }
    }
@Test
    @EnabledForJreRange(min = JAVA_9)
    void freeThrowsIllegalArgumentExceptionIfByteBufferIsASlice()
    {
        final ByteBuffer buffer = ByteBuffer.allocateDirect(4).slice();

        assertThrows(IllegalArgumentException.class, () -> BufferUtil.free(buffer));
    }