### Question:
Base64Encoder { public static String getString(final byte[] bytes) { final Base64 codec = new Base64(); final byte[] decodedBytes = codec.encode(bytes); return StringEncoder.getString(decodedBytes); } private  Base64Encoder(); static byte[] getBytes(final String base64String); static String getString(final byte[] bytes);  }### Answer:
@Test public void byteArrayCanBeConvertedToString() { MatcherAssert.assertThat( Base64Encoder.getString(ENCODED_SIGMA_BYTES), IsEqual.equalTo("U2lnbWE=")); MatcherAssert.assertThat( Base64Encoder.getString(ENCODED_CURRENCY_SYMBOLS_BYTES), IsEqual.equalTo("JMKi4oKs")); }