@Test
	public void testByteArrayToString() {
		String json = "{\"foo\":\"bar\"}";
		Message<?> msg = MessageBuilder.withPayload(json.getBytes()).build();
		CompositeMessageConverter converter = converterFactory.newInstance(MimeType.valueOf("text/plain"));

		Object result = converter.fromMessage(msg, String.class);
		assertEquals(json, result);
	}
Tests for converting from a Message.

@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/integration/bus/converter/FromMessageConverterTests.java