action = new DatabaseAction();
config = new Configuration();
DatabaseScanningConfiguration databaseScanningConfig = new DatabaseScanningConfiguration();
List<String> cleanUpConsumers = new ArrayList<String>();
cleanUpConsumers.add( "not-present-remove-db-artifact" );
cleanUpConsumers.add( "not-present-remove-db-project" );
cleanUpConsumers.add( "not-present-remove-indexed" );
List<String> unprocessedConsumers = new ArrayList<String>();
unprocessedConsumers.add( "update-db-bytecode-stats" );
unprocessedConsumers.add( "update-db-project" );
unprocessedConsumers.add( "validate-repository-metadata" );
databaseScanningConfig.setCleanupConsumers( cleanUpConsumers );
databaseScanningConfig.setUnprocessedConsumers( unprocessedConsumers );
config.setDatabaseScanning( databaseScanningConfig );
setUpEnabledUnproccessedConsumers();
setUpEnabledCleanupConsumers();