Encodings { public static String base64(String value) { return base64(Strings.bytes(value)); }  static String uriComponent(String value); static String decodeURIComponent(String value); static String base64(String value); static String base64(byte[] value); static byte[] decodeBase64(String value); static String base64URLSafe(byte[] value); static byte[] decodeBase64URLSafe(String value); static String hex(byte[] bytes);  }
@Test void base64() { assertThat(Encodings.base64("")).isEqualTo(""); assertThat(Encodings.base64("leasure.")).isEqualTo("bGVhc3VyZS4="); }