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

    String expandOnBackendRule = "{"
            + "  \"/gateleen/rule/1\": {"
            + "    \"description\": \"Test Rule 1\","
            + "    \"expandOnBackend\": true,"
            + "    \"url\": \"${gateleen.test.prop.1}/gateleen/rule/1\""
            + "  }"
            + "}";
    properties.put("gateleen.test.prop.1", "http://someserver1/");
    List<Rule> rules =  new RuleFactory(properties, routingRulesSchema).parseRules(Buffer.buffer(expandOnBackendRule));
    context.assertTrue(rules.size() == 1);
    context.assertEquals(true, rules.get(0).isExpandOnBackend());
}