public void testValidRuleWithWildcardProperties() throws Exception
{
final PlainConfiguration config = writeACLConfig("ACL ALLOW all CREATE EXCHANGE routingKey = \'news.#\'",
"ACL ALLOW all CREATE EXCHANGE routingKey = \'news.co.#\'",
"ACL ALLOW all CREATE EXCHANGE routingKey = *.co.medellin");
final RuleSet rs = config.getConfiguration();
assertEquals(3, rs.getRuleCount());
final Map<Integer, Rule> rules = rs.getAllRules();
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());