@Test
public void testInvalidUrlPattern() throws ValidationException {

    thrown.expect( ValidationException.class );
    thrown.expectMessage("Invalid url for pattern");
    String rules = "{" +
            " \"/gateleen/rule/1\": {" +
            "  \"description\": \"Test Rule 1\"," +
            "  \"url\": \"${gateleen.test.prop.1}/gateleen/rule/1\"" +
            " }" +
            "}";
    properties.put("gateleen.test.prop.1", "http://someserver1:1234:1234/"); // port information is not valid
    new RuleFactory(properties, routingRulesSchema).parseRules(Buffer.buffer(rules));
}