public static void cleanBuffer(final ByteBuffer buffer) {
        if (null == buffer) {
            return;
        }

        if (!buffer.isDirect()) {
            return;
        }

        PlatformDependent.freeDirectBuffer(buffer);
    }
@Test
    public void testCleanBuffer() {
        UtilAll.cleanBuffer(null);
        UtilAll.cleanBuffer(ByteBuffer.allocateDirect(10));
        UtilAll.cleanBuffer(ByteBuffer.allocateDirect(0));
        UtilAll.cleanBuffer(ByteBuffer.allocate(10));
    }