@Test
public void testsetShort() throws Exception {

    //given
    final short s0 = 0x4567;
    final short s1 = (short) 0x8901;
    //when
    final Pointer<Short> shortPointer = Pointer.nref(s0,
                                                     s1);
    //then
    assertThat(JNITestUtil.getByte(shortPointer.address)).isEqualTo((byte) 0x67);
    assertThat(JNITestUtil.getByte(shortPointer.address + 1)).isEqualTo((byte) 0x45);
    assertThat(JNITestUtil.getByte(shortPointer.address + 2)).isEqualTo((byte) 0x01);
    assertThat(JNITestUtil.getByte(shortPointer.address + 3)).isEqualTo((byte) 0x89);
}