@Test
void encode() throws Exception
{

    assertThat(getEncoder().encode(BYTES), equalTo(ENCODED_BYTES));
    assertThat(getEncoder().encode(BYTES, 64), equalTo(WRAPPED_ENCODED_BYTES));
    assertThat(getEncoder().encode(BYTES, 0, BYTES.length),
        equalTo(ENCODED_BYTES));
    assertThat(getEncoder().encode(BYTES, 0, BYTES.length, 64),
        equalTo(WRAPPED_ENCODED_BYTES));
}