U2fB64Encoding { public static String encode(byte[] decoded) { return BASE64_ENCODER.encode(decoded); }  static String encode(byte[] decoded); static byte[] decode(String encoded);  }
@Test public void encodeTest() { byte[] input = "Test".getBytes(); String base64Data = U2fB64Encoding.encode(input); assertEquals("VGVzdA", base64Data); }