### Question:
AutomaticCalculator extends
        AbstractNetworkWeightCalculator { @Override public void process() throws ApplicationException { progress.setStatus(Constants.PROGRESS_WEIGHTING_MESSAGE); progress.setProgress(Constants.PROGRESS_WEIGHTING); QueryEnrichedAttributeScorer attributeScorer = new QueryEnrichedAttributeScorer(cache, label, MIN_QUERY_GENES_PER_ATTRIBUTE); FeatureList featureList = buildFeatureList(attributeScorer, false); try { AutomaticGramBuilder builder = new AutomaticGramBuilder(cache, namespace, organismId, featureList, label, progress); weights = builder.build(progress); } catch (WeightingFailedException e) { logger.error("weighting calculation failed, falling back to average: " + e.getMessage()); weights = AverageByNetworkCalculator.average(featureList); } progress.setStatus(Constants.PROGRESS_COMBINING_MESSAGE); progress.setProgress(Constants.PROGRESS_COMBINING); combinedMatrix = CombineNetworksOnly.combine(weights, namespace, organismId, cache, progress); } AutomaticCalculator(String namespace, DataCache cache, Collection<Collection<Long>> networkIds, 
            Collection<Long> attributeGroupIds, long organismId, Vector label, int attributesLimit, ProgressReporter progress); @Override void process();  }### Answer:
@Test public void testProcess() throws Exception { System.out.println("process"); Collection<Collection<Long>> groups = new ArrayList<Collection<Long>>(); Collection<Long> attributeGroupIds = new ArrayList<Long>(); Collection<Long> group = new ArrayList<Long>(); for (int i=0; i<org1networkIds.length; i++) { group.add(org1networkIds[i]); } groups.add(group); no.uib.cipr.matrix.Vector labels = new DenseVector(org1numGenes); for (int i = 0; i < labels.size()/2; i++) { if (i < 20) { labels.set(i, 1.0); } else { labels.set(i, -1.0); } } INetworkWeightCalculator calculator = new AutomaticCalculator(Data.CORE, cacheBuilder.getCache(), groups, attributeGroupIds, org1Id, labels, Config.instance().getAttributeEnrichmentMaxSize(), NullProgressReporter.instance()); calculator.process(); FeatureWeightMap weights = calculator.getWeights(); assertNotNull(weights); }