@Test
public void testValidDynamicPortConfig(TestContext context) throws ValidationException {

    String simpleExampleRule = "{\n" +
            "  \"/gateleen/(1234|5678)/rule/(.*)\": {\n" +
            "    \"url\": \"http://someserver1:$1/target/$2\"\n" +
            "  }\n" +
            "}";
    List<Rule> rules =  new RuleFactory(properties, routingRulesSchema).parseRules(Buffer.buffer(simpleExampleRule));
    context.assertTrue(rules.size() == 1);
    context.assertEquals("someserver1", rules.get(0).getHost());
    context.assertTrue(rules.get(0).hasPortWildcard());
    context.assertEquals("$1", rules.get(0).getPortWildcard());
}