### Question:
SimpleArtifactConsumer extends AbstractMonitoredConsumer implements KnownRepositoryContentConsumer, RegistryListener { public void processFile( String path ) throws ConsumerException { processFile( path, 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 testProcessFile() throws Exception { consumer.beginScan( testRepository, new Date() ); consumer.processFile( "org/simple/test/testartifact/testartifact/1.0/testartifact-1.0.pom" ); consumer.processFile( "org/simple/test/testartifact/testartifact/1.1/testartifact-1.1.pom" ); }