### Question:
BagOfTerms implements InferWithHPOHierarchy { public Set<TermId> getInferedTerms() { return new LinkedHashSet<>(this.terms_inferred); } BagOfTerms(String patient, Ontology hp);  BagOfTerms(String patient, Set<TermId> hpterms, Ontology hp); String getPatient(); Set<TermId> getOriginalTerms(); Set<TermId> getInferedTerms(); void addTerm(TermId term); @Override void infer();  }### Answer:
@Test public void getInferedTerms() { BagOfTerms patient1 = new BagOfTerms(patientId, hpo); patient1.addTerm(TermId.of(HP_PREFIX, "0003074")); patient1.addTerm(TermId.of(HP_PREFIX, "0011297")); assertEquals(patient1.getInferedTerms().size(), 0); }