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

    thrown.expect( ValidationException.class );
    thrown.expectMessage("Invalid url for pattern /gateleen/(1234|5678)/rule/(.*): http://someserver1:$abc/target/$2");
    String simpleExampleRule = "{\n" +
            "  \"/gateleen/(1234|5678)/rule/(.*)\": {\n" +
            "    \"url\": \"http://someserver1:$abc/target/$2\"\n" +
            "  }\n" +
            "}";
    new RuleFactory(properties, routingRulesSchema).parseRules(Buffer.buffer(simpleExampleRule));
}