AbstractBinaryStringEncoder implements BinaryStringEncoder { @Override public String encode(byte[] input) throws IOException { return encode(input, 0, input.length); }  @Override String encode(byte[] input); @Override String encode(byte[] input, int wrapAt); @Override String encode(byte[] input, int off, int len); @Override String encode(byte[] input, int off, int len, int wrapAt); @Override byte[] decode(String input); @Override FilterInputStream getDecoderInputStream(InputStream is); @Override FilterOutputStream getEncoderOutputStream(OutputStream os); @Override FilterOutputStream getEncoderOutputStream(OutputStream os, int wrapAt);  }
@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)); }