@Test
public void testUrlAndPathProperty() throws ValidationException {

    thrown.expect( ValidationException.class );
    thrown.expectMessage("Either 'url' or 'path' must be given, not both");
    String rules = "{" +
            " \"/gateleen/rule/1\": {" +
            "  \"description\": \"Test Rule 1\"," +
            "  \"path\": \"/${gateleen.test.prop.1}/gateleen/rule/1\"," +
            "  \"url\": \"${gateleen.test.prop.1}/gateleen/rule/1\"," +
            "  \"storage\": \"main\"" +
            " }" +
            "}";
    properties.put("gateleen.test.prop.1", "http://someserver1/");
    new RuleFactory(properties, routingRulesSchema).parseRules(Buffer.buffer(rules));
}