@Test
public void testMalloc() throws Exception {

    //given
    final int   cLongSize = sizeof((CLong) null);
    final CLong cLong     = new CLong(123456);
    //when
    try (final Pointer<CLong> cLongPointer = malloc(cLongSize).castp(CLong.class);) {
        cLongPointer.set(cLong);
        //then
        final long nativeCLongRead = JNITestUtil.getCLong(cLongPointer.address);
        assertThat(nativeCLongRead).isEqualTo(cLong.longValue());
    }
}