@Test void testConvert() throws UnsupportedEncodingException { ByteArrayToStringConverter testSubject = new ByteArrayToStringConverter(); assertEquals(String.class, testSubject.targetType()); assertEquals(byte[].class, testSubject.expectedSourceType()); assertEquals("hello", testSubject.convert("hello".getBytes(StandardCharsets.UTF_8))); }
@Override public String convert(byte[] original) { return new String(original, UTF8); }
ByteArrayToStringConverter implements ContentTypeConverter<byte[],String> { @Override public String convert(byte[] original) { return new String(original, UTF8); } }
ByteArrayToStringConverter implements ContentTypeConverter<byte[],String> { @Override public String convert(byte[] original) { return new String(original, UTF8); }  }
ByteArrayToStringConverter implements ContentTypeConverter<byte[],String> { @Override public String convert(byte[] original) { return new String(original, UTF8); }  @Override Class<byte[]> expectedSourceType(); @Override Class<String> targetType(); @Override String convert(byte[] original); }
ByteArrayToStringConverter implements ContentTypeConverter<byte[],String> { @Override public String convert(byte[] original) { return new String(original, UTF8); }  @Override Class<byte[]> expectedSourceType(); @Override Class<String> targetType(); @Override String convert(byte[] original);  }