@Override
    public boolean isManagedIndex(String index) {
        return !isNullOrEmpty(index) && !isWriteIndexAlias(index) && indexPattern.matcher(index).matches();
    }
@Test
    public void identifiesRestoredArchivesAsBeingManaged() {
        final IndexSetConfig restoredArchives = config.toBuilder()
                .title("Restored Archives")
                .description("Indices which have been restored from an archive.")
                .indexPrefix("restored-archive")
                // Use a special match pattern and wildcard to match restored indices like `restored-archive-graylog_33`
                .indexMatchPattern("restored-archive\\S*")
                .indexWildcard("restored-archive*")
                .build();
        final String indexName = restoredArchives.indexPrefix() + "-graylog_33";

        final MongoIndexSet mongoIndexSet = createIndexSet(restoredArchives);

        assertThat(mongoIndexSet.isManagedIndex(indexName)).isTrue();
    }