@Test
	public void testString() throws IOException {
		MessageValues convertedValues = messageBus.serializePayloadIfNecessary(
				new GenericMessage<String>("foo"));

		Message<?> converted = convertedValues.toMessage();
		assertEquals(MimeTypeUtils.TEXT_PLAIN,
				contentTypeResolver.resolve(converted.getHeaders()));
		MessageValues reconstructed = messageBus.deserializePayloadIfNecessary(converted);
		assertEquals("foo", reconstructed.getPayload());
		assertNull(reconstructed.get(MessageHeaders.CONTENT_TYPE));
	}
@author Gary Russell
@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/integration/bus/MessageBusSupportTests.java