### Question:
Base64 { public static String encode(Bytes bytes) { requireNonNull(bytes); return encodeBytes(bytes.toArrayUnsafe()); } private  Base64(); static String encodeBytes(byte[] bytes); static String encode(Bytes bytes); static byte[] decodeBytes(String b64); static Bytes decode(String b64);  }### Answer:
@Test void shouldEncodeBytesValue() { String s = Base64.encode(Bytes.of(1, 2, 3, 4, 5, 6, 7, 8)); assertEquals("AQIDBAUGBwg=", s); }
@Test void shouldEncodeValueWithSlashes() { String value = Base64.encode(Bytes.fromHexString("deadbeefffffff")); assertEquals("3q2+7 }