assertEquals(3, rules.size());
final Rule rule1 = rules.get(0);
assertEquals("Rule has unexpected identity", "all", rule1.getIdentity());
assertEquals("Rule has unexpected operation", Operation.CREATE, rule1.getAction().getOperation());
assertEquals("Rule has unexpected operation", ObjectType.EXCHANGE, rule1.getAction().getObjectType());
final ObjectProperties expectedProperties1 = new ObjectProperties();
expectedProperties1.put(Property.ROUTING_KEY,"news.#");
assertEquals("Rule has unexpected object properties", expectedProperties1, rule1.getAction().getProperties());
final Rule rule2 = rules.get(10);
final ObjectProperties expectedProperties2 = new ObjectProperties();
expectedProperties2.put(Property.ROUTING_KEY,"news.co.#");
assertEquals("Rule has unexpected object properties", expectedProperties2, rule2.getAction().getProperties());
final Rule rule3 = rules.get(20);
final ObjectProperties expectedProperties3 = new ObjectProperties();
expectedProperties3.put(Property.ROUTING_KEY,"*.co.medellin");
assertEquals("Rule has unexpected object properties", expectedProperties3, rule3.getAction().getProperties());
}