### Question:
NexusIndexerConsumer extends AbstractMonitoredConsumer implements KnownRepositoryContentConsumer, RegistryListener { @Override public List<String> getIncludes() { return includes; } @Inject  NexusIndexerConsumer(
        @Named( value = "archivaTaskScheduler#indexing" ) ArchivaTaskScheduler<ArtifactIndexingTask> scheduler,
        @Named( value = "archivaConfiguration" ) ArchivaConfiguration configuration, FileTypes filetypes); @Override String getDescription(); @Override String getId(); @Override void beginScan( ManagedRepository repository, Date whenGathered ); @Override void beginScan( ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo ); @Override void processFile( String path ); @Override void processFile( String path, boolean executeOnEntireRepo ); @Override void completeScan(); @Override void completeScan( boolean executeOnEntireRepo ); @Override List<String> getExcludes(); @Override void afterConfigurationChange( Registry registry, String propertyName, Object propertyValue ); @Override void beforeConfigurationChange( Registry registry, String propertyName, Object propertyValue ); @PostConstruct void initialize(); @Override List<String> getIncludes();  }### Answer:
@Test public void testIncludedFileTypes() throws Exception { List<String> includes = nexusIndexerConsumer.getIncludes(); assertTrue( ".pom artifacts should be processed.", includes.contains( "***.xml" ) ); assertTrue( ".txt artifacts should be processed.", includes.contains( "***.jar" ) ); assertTrue( ".war artifacts should be processed.", includes.contains( "***.zip" ) ); }