public boolean hasConfig(String resource) {
        if (resource == null) {
            return false;
        }
        return !getRules(resource).isEmpty();
    }
@Test
    public void testHasConfig() {
        // Setup
        final Map<String, List<FlowRule>> rulesMap = generateFlowRules(true);

        // Run the test and verify the results
        ruleManager.updateRules(rulesMap);
        assertTrue(ruleManager.hasConfig("rule1"));
        assertFalse(ruleManager.hasConfig("rule3"));
    }