@Test
	public void testCanDecodeOldFormat() throws Exception {
		EmbeddedHeadersMessageConverter converter = new EmbeddedHeadersMessageConverter();
		byte[] bytes = "\u0002\u0003foo\u0003bar\u0003baz\u0004quxxHello".getBytes("UTF-8");
		Message<byte[]> message = new GenericMessage<byte[]>(bytes);
		MessageValues extracted = converter.extractHeaders(message,false);
		assertEquals("Hello", new String((byte[])extracted.getPayload()));
		assertEquals("bar", extracted.get("foo"));
		assertEquals("quxx", extracted.get("baz"));
	}
@author Gary Russell
@author Artem Bilan
@since 1.0
spring-xd-messagebus-spi/src/test/java/org/springframework/xd/dirt/integration/bus/MessageConverterTests.java