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

    thrown.expect( ValidationException.class );
    thrown.expectMessage("Could not resolve gateleen.missing.prop.1");
    String simpleExampleRule = "{"
            + "  \"/gateleen/rule/1\": {"
            + "    \"description\": \"Test Rule 1\","
            + "    \"url\": \"${gateleen.missing.prop.1}/gateleen/rule/1\""
            + "  },"
            + "  \"/gateleen/rule/2\": {"
            + "    \"description\": \"Test Rule 2\","
            + "    \"url\": \"${gateleen.test.prop.2}/gateleen/rule/2\""
            + "  }"
            + "}";
    properties.put("gateleen.test.prop.1", "http://someserver1/");
    properties.put("gateleen.test.prop.2", "http://someserver2/");
    new RuleFactory(properties, routingRulesSchema).parseRules(Buffer.buffer(simpleExampleRule));
}