@Test
public void testIgnoreRulesWithInvalidPatterns(TestContext context){

    Rule ruleValid1 = createRule("/test/rules/rule_valid_1", true, false);
    Rule ruleValid2 = createRule("/test/rules/rule_valid_2", false, true);
    Rule ruleInvalid = createRule("/test/rules/(rule_invalid", true, false);
    RuleFeaturesProvider provider = new RuleFeaturesProvider(Arrays.asList(ruleInvalid, ruleValid1, ruleValid2));
    List<RuleFeatures> ruleFeatures = provider.getFeaturesList();
    context.assertEquals(2, ruleFeatures.size());
    context.assertTrue(ruleFeatures.get(0).hasFeature(STORAGE_EXPAND));
    context.assertFalse(ruleFeatures.get(0).hasFeature(EXPAND_ON_BACKEND));
    context.assertFalse(ruleFeatures.get(1).hasFeature(STORAGE_EXPAND));
    context.assertTrue(ruleFeatures.get(1).hasFeature(EXPAND_ON_BACKEND));
}