### Question:
StringEncoder { public static String getString(final byte[] bytes) { return new String(bytes, ENCODING_CHARSET); } private  StringEncoder(); static byte[] getBytes(final String s); static String getString(final byte[] bytes);  }### Answer:
@Test public void byteArrayCanBeConvertedToString() { MatcherAssert.assertThat( StringEncoder.getString(ENCODED_SIGMA_BYTES), IsEqual.equalTo("Sigma")); MatcherAssert.assertThat( StringEncoder.getString(ENCODED_CURRENCY_SYMBOLS_BYTES), IsEqual.equalTo("\u0024\u00a2\u20ac")); }