@Test
  public void testServerSearchByAttributeSetCommand() throws Exception {
    g = loadOntology("../OWLTools-Sim/src/test/resources/sim/mp-subset-1.obo");

    ABoxUtils.createRandomClassAssertions(g.getSourceOntology(), 200, 20);

    OwlSimFactory owlSimFactory = new FastOwlSimFactory();
    OwlSim sos = owlSimFactory.createOwlSim(g.getSourceOntology());

    sos.createElementAttributeMapFromOntology();

    final HttpUriRequest httppost = createSearchByAttributeSetRequest(5);
    runServerCommunication(httppost, sos);
  }
  @Test
  public void testServerGetAnnotationSufficiencyScoreCommandBad() throws Exception {
    g = loadOntology("../OWLTools-Sim/src/test/resources/sim/mp-subset-1.obo");

    ABoxUtils.createRandomClassAssertions(g.getSourceOntology(), 200, 20);
    // set sim
    OwlSimFactory owlSimFactory = new FastOwlSimFactory();
    OwlSim sos = owlSimFactory.createOwlSim(g.getSourceOntology());

    sos.createElementAttributeMapFromOntology();

    HttpUriRequest httppost = createBogusAnnotSufRequest(5);

    runServerCommunication(httppost, sos);
  }
  @Test
  public void testServerGetCoAnnotationSuggestions() throws Exception {
    g = loadOntology("../OWLTools-Sim/src/test/resources/sim/mp-subset-1.obo");
    String file = "../OWLTools-Sim/src/test/resources/sim/mgi-gene2mp-subset-1.tbl";
    //		g = loadOntology("/Users/Nicole/work/MONARCH/phenotype-ontologies/src/ontology/hp.obo");
    //		String
    // file="/Users/Nicole/work/MONARCH/phenotype-ontologies/data/Homo_sapiens/Hs-disease-to-phenotype-O.txt";

    TableToAxiomConverter ttac = new TableToAxiomConverter(g);
    ttac.config.axiomType = AxiomType.CLASS_ASSERTION;
    ttac.config.isSwitchSubjectObject = true;
    ttac.parse(file);

    OwlSimFactory owlSimFactory = new FastOwlSimFactory();
    OwlSim sos = owlSimFactory.createOwlSim(g.getSourceOntology());

    sos.createElementAttributeMapFromOntology();
    //		sos.populateFullCoannotationMatrix();
    LOG.info("Finished populating the big matrix");

    HttpUriRequest httppost = createGoodCoAnnotationRequest(1);

    runServerCommunication(httppost, sos);
  }