expected.putAll(createExpectedExchangeMap("amq.direct", "direct"));
expected.putAll(createExpectedExchangeMap("amq.fanout", "fanout"));
expected.putAll(createExpectedExchangeMap("amq.match", "headers"));
expected.putAll(createExpectedExchangeMap("amq.topic", "topic"));
MapJsonSerializer jsonSerializer = new MapJsonSerializer();
for (Entry<UUID, UpgradeConfiguredObjectRecord> entry : configuredObjects.entrySet())
{
UpgradeConfiguredObjectRecord object = entry.getValue();
UUID actualKey = entry.getKey();
String actualType = object.getType();
String actualJson = object.getAttributes();
Map<String, Object> actualDeserializedAttributes = jsonSerializer.deserialize(actualJson);
assertTrue("Entry UUID " + actualKey + " of type " + actualType + " is unexpected", expected.containsKey(actualKey));
Map<String, Object> expectedDeserializedAttributes = expected.get(actualKey);