@Test
public void testReverseArray() {

    assertThat(reverseArray(new byte[]{0x01, 0x02, 0x03}), is(new byte[]{0x03, 0x02, 0x01}));
    assertThat(reverseArray(new byte[]{0x01, 0x02}), is(new byte[]{0x02, 0x01}));
    assertThat(reverseArray(new byte[]{0x01}), is(new byte[]{0x01}));
    assertThat(reverseArray(new byte[]{}), is(new byte[]{}));
}