public static int getRuleCount(Engine engine) {
        if (engine.hasObject(SUPPRESSION_OBJECT_KEY)) {
            @SuppressWarnings("unchecked")
            final List<SuppressionRule> rules = (List<SuppressionRule>) engine.getObject(SUPPRESSION_OBJECT_KEY);
            return rules.size();
        }
        return 0;
    }
@Test
    public void testGetRulesFromMultipleSuppressionFiles() throws Exception {
        final int rulesInCoreFile = getNumberOfRulesLoadedInCoreFile();

        // GIVEN suppression rules from one file
        final int rulesInFirstFile = getNumberOfRulesLoadedFromPath(SUPPRESSIONS_FILE) - rulesInCoreFile;

        // AND suppression rules from another file
        final int rulesInSecondFile = getNumberOfRulesLoadedFromPath(OTHER_SUPPRESSIONS_FILE) - rulesInCoreFile;

        // WHEN initializing with both suppression files
        final String[] suppressionFiles = {SUPPRESSIONS_FILE, OTHER_SUPPRESSIONS_FILE};
        getSettings().setArrayIfNotEmpty(KEYS.SUPPRESSION_FILE, suppressionFiles);
        instance.initialize(getSettings());
        Engine engine = new Engine(getSettings());
        instance.prepare(engine);

        // THEN rules from both files were loaded
        final int expectedSize = rulesInFirstFile + rulesInSecondFile + rulesInCoreFile;
        assertThat("Expected suppressions from both files", instance.getRuleCount(engine), is(expectedSize));
    }