@Test
public void testsetDouble() throws Exception {

    //given
    final double d0 = 0x4567_8901_2345_6789L;
    final double d1 = 0x1234_5678_9012_3456L;
    //when
    final Pointer<Double> doublePointer = Pointer.nref(d0,
                                                       d1);
    //then
    assertThat((float) JNITestUtil.getDouble(doublePointer.address)).isEqualTo((float) d0);
    assertThat((float) JNITestUtil.getDouble(doublePointer.address + 8)).isEqualTo((float) d1);
}