### Question:
SimpleArtifactConsumer extends AbstractMonitoredConsumer implements KnownRepositoryContentConsumer, RegistryListener { public void beginScan( ManagedRepository repository, Date whenGathered ) throws ConsumerException { beginScan( repository, whenGathered, true ); }  void beginScan( ManagedRepository repository, Date whenGathered ); void beginScan( ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo ); void processFile( String path ); void processFile( String path, boolean executeOnEntireRepo ); void completeScan(); void completeScan( boolean executeOnEntireRepo ); boolean isProcessUnmodified(); void afterConfigurationChange( org.apache.archiva.components.registry.Registry registry, String propertyName, Object propertyValue ); void beforeConfigurationChange( Registry registry, String propertyName, Object propertyValue ); @PostConstruct void initialize(); String getId(); String getDescription(); List<String> getExcludes(); List<String> getIncludes(); boolean isPermanent();  }### Answer:
@Test public void testBeginScan() throws Exception { log.info( "Beginning scan of repository [test-consumer-repository]" ); consumer.beginScan( testRepository, new Date() ); }