@Test
public void testExpandOnBackendFeatureRequests(TestContext context){

    Rule rule1 = createRule("/root/element1/element2/(test1/.*/test2/.*/test3/.*)", false, true);
    Rule rule2 = createRule("/root/element11/element22/(.*)", false, true);
    Rule rule3 = createRule("/root/element111/element222/", false, true);
    RuleFeaturesProvider provider = new RuleFeaturesProvider(Arrays.asList(rule1, rule2, rule3));
    context.assertTrue(provider.isFeatureRequest(EXPAND_ON_BACKEND, "/root/element1/element2/test1/1234/test2/23423/test3/asdf/asdf"));
    context.assertFalse(provider.isFeatureRequest(EXPAND_ON_BACKEND, "/root/element1/element2/test999/1234/test2/23423/test3/asdf/asdf"));
    context.assertTrue(provider.isFeatureRequest(EXPAND_ON_BACKEND, "/root/element11/element22/test1/1234/"));
    context.assertFalse(provider.isFeatureRequest(EXPAND_ON_BACKEND, "/root/element11/element22"));
    context.assertTrue(provider.isFeatureRequest(EXPAND_ON_BACKEND, "/root/element111/element222/"));
    context.assertFalse(provider.isFeatureRequest(EXPAND_ON_BACKEND, "/root/element111/element222/asdf"));
}