    @Test
    public void encodeByteWithFourLeadingOnesYieldsCorrectResult() {

        final ByteBuffer byteBuffer = ByteBuffer.allocate(1);
        byteBuffer
                .put((byte) 0xF0)
                .flip();
        assertThat(encoder.encode(byteBuffer), is("8A"));
    }