@Test
public void testIsStorageExpand(TestContext context) {

    expansionHandler = new ExpansionHandler(vertx, storage, httpClient, new HashMap<>(), ROOT, RULES_ROOT);
    context.assertFalse(expansionHandler.isStorageExpand("/some/request/uri"),
            "uri should not be a storage expand since no routing rules have been defined yet");
    List<Rule> rules = new ArrayList<>();
    Rule rule1 = new Rule();
    rule1.setUrlPattern("/test/rules/rule/storageExpand");
    rule1.setStorageExpand(true);
    rules.add(rule1);
    Rule rule2 = new Rule();
    rule2.setUrlPattern("/test/rules/rule/notStorageExpand");
    rule2.setStorageExpand(false);
    rules.add(rule2);
    expansionHandler.rulesChanged(rules);
    context.assertTrue(expansionHandler.isStorageExpand("/test/rules/rule/storageExpand"),
            "uri should be a storage expand");
    context.assertFalse(expansionHandler.isStorageExpand("/test/rules/rule/notStorageExpand"),
            "uri should not be a storage expand");
    context.assertFalse(expansionHandler.isStorageExpand("/some/other/request/uri"),
            "uri should not be a storage expand");
}