public static void free(final DirectBuffer buffer)
    {
        if (null != buffer)
        {
            free(buffer.byteBuffer());
        }
    }
@Test
    void freeIsANoOpIfByteBufferIsNotDirect()
    {
        final ByteBuffer buffer = ByteBuffer.allocate(4);

        BufferUtil.free(buffer);

        buffer.put(2, (byte)101);
        assertEquals(101, buffer.get(2));
    }