@Test
public void testTrimLeadingZeroes() {

    assertThat(trimLeadingZeroes(new byte[]{}), CoreMatchers.is(new byte[]{}));
    assertThat(trimLeadingZeroes(new byte[]{0}), CoreMatchers.is(new byte[]{0}));
    assertThat(trimLeadingZeroes(new byte[]{1}), CoreMatchers.is(new byte[]{1}));
    assertThat(trimLeadingZeroes(new byte[]{0, 1}), CoreMatchers.is(new byte[]{1}));
    assertThat(trimLeadingZeroes(new byte[]{0, 0, 1}), CoreMatchers.is(new byte[]{1}));
    assertThat(trimLeadingZeroes(new byte[]{0, 0, 1, 0}), CoreMatchers.is(new byte[]{1, 0}));
}