@Test
public void testStorageExpandRequestsFromSpecificToLessSpecific(TestContext context){

    Rule rule1 = createRule("/root/elements/123/(.*)", false, false);
    Rule rule2 = createRule("/root/elements/([0-9].*)", true, false);
    RuleFeaturesProvider provider = new RuleFeaturesProvider(Arrays.asList(rule1, rule2));
    context.assertFalse(provider.isFeatureRequest(STORAGE_EXPAND, "/root/elements/123/some/more/elements"));
    context.assertTrue(provider.isFeatureRequest(STORAGE_EXPAND, "/root/elements/999/some/more/elements"));
}