private void compareMaps(Map<AMQPString, AMQPType> m1, Map<AMQPType, AMQPType> m2){ Set e1 = m1.entrySet(); Set e2 = m2.entrySet(); assertTrue(e1.containsAll(e2)); assertTrue(e2.containsAll(e1)); }