@Test
public void testTrimLeadingBytes() {

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