// Path: src/main/java/org/broadinstitute/macarthurlab/matchbox/metrics/PrivilegedMetricServiceImpl.java
// @Service(value="privilegedMetricServiceImpl")
// public class PrivilegedMetricServiceImpl extends BaseMetric implements MetricService{
// 
// 	/**
// 	 * Returns a String representing a JSON
// 	 * TODO should be an obj reprsenting the JSON
// 	 */
// 	public PrivilegedMetric getMetricsTEMP() {
// 		return new PrivilegedMetric();
// 	}
// 
// 
// 	@Override
// 	/**
// 	 * Returns a seiries of metric as JSON
// 	 */
// 	public Metric getMetrics() {	
// 		StringBuilder query = new StringBuilder("{}");
// 		BasicQuery q = new BasicQuery(query.toString());
// 		List<Patient> allPatients = operator.find(q,Patient.class);
// 
// 		return new PrivilegedMetric(
// 								this.getNumberOfSubmitters(allPatients), 
// 								this.countGenesInSystem(allPatients).size(), 
// 								this.countPhenotypesInSystem(allPatients).size(),
// 								this.getNumberOfCasesWithDiagnosis(), 
// 								this.getNumOfPatientsInSystem(allPatients), 
// 								this.getPercentageOfGenesThatMatch(allPatients),
// 								this.getMeanNumberOfGenesPerCase(allPatients), 
// 								this.getMeanNumberOfVariantsPerCase(allPatients), 
// 								this.getMeanNumberOfPhenotypesPerCase(allPatients),
// 								this.getNumOfIncomingMatchRequests(), 
// 								this.getNumOfMatches(),
// 								this.countGenesInSystem(allPatients),
// 								this.countPhenotypesInSystem(allPatients));
// 	}
// }


import com.github.fakemongo.Fongo;
import com.mongodb.BasicDBObject;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import org.broadinstitute.macarthurlab.matchbox.metrics.PrivilegedMetricServiceImpl;
import org.junit.Test;
import java.util.Map;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
package org.broadinstitute.macarthurlab.matchbox;





/**
 * Unit test for simple App.
 */

public class AppTest {

    /**
     * Test counting distinct genes for metrics
     */
    @Test
    public void testMetricsDistinctGenes(){
// Path: src/main/java/org/broadinstitute/macarthurlab/matchbox/metrics/PrivilegedMetricServiceImpl.java
// @Service(value="privilegedMetricServiceImpl")
// public class PrivilegedMetricServiceImpl extends BaseMetric implements MetricService{
// 
// 	/**
// 	 * Returns a String representing a JSON
// 	 * TODO should be an obj reprsenting the JSON
// 	 */
// 	public PrivilegedMetric getMetricsTEMP() {
// 		return new PrivilegedMetric();
// 	}
// 
// 
// 	@Override
// 	/**
// 	 * Returns a seiries of metric as JSON
// 	 */
// 	public Metric getMetrics() {	
// 		StringBuilder query = new StringBuilder("{}");
// 		BasicQuery q = new BasicQuery(query.toString());
// 		List<Patient> allPatients = operator.find(q,Patient.class);
// 
// 		return new PrivilegedMetric(
// 								this.getNumberOfSubmitters(allPatients), 
// 								this.countGenesInSystem(allPatients).size(), 
// 								this.countPhenotypesInSystem(allPatients).size(),
// 								this.getNumberOfCasesWithDiagnosis(), 
// 								this.getNumOfPatientsInSystem(allPatients), 
// 								this.getPercentageOfGenesThatMatch(allPatients),
// 								this.getMeanNumberOfGenesPerCase(allPatients), 
// 								this.getMeanNumberOfVariantsPerCase(allPatients), 
// 								this.getMeanNumberOfPhenotypesPerCase(allPatients),
// 								this.getNumOfIncomingMatchRequests(), 
// 								this.getNumOfMatches(),
// 								this.countGenesInSystem(allPatients),
// 								this.countPhenotypesInSystem(allPatients));
// 	}
// }


// Path: src/test/java/org/broadinstitute/macarthurlab/matchbox/AppTest.java
import com.github.fakemongo.Fongo;
import com.mongodb.BasicDBObject;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import org.broadinstitute.macarthurlab.matchbox.metrics.PrivilegedMetricServiceImpl;
import org.junit.Test;
import java.util.Map;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;

package org.broadinstitute.macarthurlab.matchbox;





/**
 * Unit test for simple App.
 */

public class AppTest {

    /**
     * Test counting distinct genes for metrics
     */
    @Test
    public void testMetricsDistinctGenes(){
    	PrivilegedMetricServiceImpl metric = new PrivilegedMetricServiceImpl();  