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

    String storageExpandRule = "{" +
            " \"/gateleen/rule/1\": {" +
            "  \"description\": \"Test Rule 1\"," +
            "  \"path\": \"/${gateleen.test.prop.1}/gateleen/rule/1\"," +
            "  \"storageExpand\": true," +
            "  \"storage\": \"main\"" +
            " }," +
            " \"/gateleen/rule/2\": {" +
            "  \"description\": \"Test Rule 2\"," +
            "  \"path\": \"/${gateleen.test.prop.1}/gateleen/rule/2\"," +
            "  \"storageExpand\": false," +
            "  \"storage\": \"main\"" +
            " }," +
            " \"/gateleen/rule/3\": {" +
            "  \"description\": \"Test Rule 3\"," +
            "  \"path\": \"/${gateleen.test.prop.1}/gateleen/rule/3\"," +
            "  \"storage\": \"main\"" +
            " }" +
            "}";
    properties.put("gateleen.test.prop.1", "http://someserver1/");
    List<Rule> rules =  new RuleFactory(properties, routingRulesSchema).parseRules(Buffer.buffer(storageExpandRule));
    context.assertEquals(3, rules.size());
    context.assertTrue(rules.get(0).isStorageExpand(), "Rule has property 'storageExpand' with value true. So isStorageExpand() should return true");
    context.assertFalse(rules.get(1).isStorageExpand(), "Rule has property 'storageExpand' with value false. So isStorageExpand() should return false");
    context.assertFalse(rules.get(2).isStorageExpand(), "Rule has no property 'storageExpand'. So isStorageExpand() should return false");
}