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