@SuppressWarnings("unchecked")
	@Test
	public void testJsonToTuple() {
		String json = "{\"foo\":\"bar\"}";
		Message<?> msg = MessageBuilder.withPayload(json).build();
		CompositeMessageConverter converter = converterFactory.newInstance(MimeType.valueOf("application/x-xd-tuple"));
		Message<Tuple> result = (Message<Tuple>) converter.fromMessage(msg, DefaultTuple.class);
		assertEquals("bar", result.getPayload().getString("foo"));
		assertEquals(MessageConverterUtils.javaObjectMimeType(DefaultTuple.class),
				result.getHeaders().get(MessageHeaders.CONTENT_TYPE));
	}
Tests for converting from a Message.

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