@Test
public void testCompactEncodeEvenTerminated() {

    byte[] test = new byte[]{0, 15, 1, 12, 11, 8, T};
    byte[] expectedData = new byte[]{0x20, 0x0f, 0x1c, (byte) 0xb8};
    assertArrayEquals("even terminated compact encode fail", expectedData, CompactEncoder.packNibbles(test));
}