public void testToMessagePropertiesLongStringInMap() {
Map<String, Object> mapWithLongString = new HashMap<String, Object>();
mapWithLongString.put("longString", longString);
Map<String, Object> headers = new HashMap<String, Object>();
headers.put("map", mapWithLongString);
BasicProperties source = new BasicProperties.Builder()
.headers(headers)
.build();
MessageProperties messageProperties = messagePropertiesConverter.toMessageProperties(source, envelope, "UTF-8");
assertEquals("LongString nested in Map not converted to String",
longStringString, ((Map<String, Object>) messageProperties.getHeaders().get("map")).get("longString"));