### Question:
BinaryEncoder { public String encode(byte[] bytes) { return encode(new Bytes.Array(bytes)); } private  BinaryEncoder(char[] numberToChar, int[] charToNumber); String encode(byte[] bytes); byte[] decode(String str); String encodeLong(long l); String encodeInt(int i); long decodeLong(String str); int decodeInt(String str); static final BinaryEncoder HEX; static final BinaryEncoder HEX_ALIASED; static final BinaryEncoder BASE32; static final BinaryEncoder BASE32_CROCKFORD; static final BinaryEncoder BASE32_CROCKFORD_NUMBER; static final BinaryEncoder BASE64; static final BinaryEncoder BASE64_URL; static final BinaryEncoder NUMBER_BASE64_URL; }### Answer:
@Test public void two_ints_combined_to_long() { String res = BASE32.encode(new Bytes.Long(-1)); assertThat(BASE32.encode(new Bytes.Long(-1, -1))).isEqualTo(res); }
@Test public void base64_no_padding() { final String base64 = BASE64.encode(TEXT_BYTES); final String javaBase64 = Base64.getEncoder().withoutPadding().encodeToString(TEXT_BYTES); assertThat(base64).isEqualTo(javaBase64); }