### Question:
PhenoSetImpl implements PhenoSet { @Override public boolean hasOccurred(TermId term) { return !this.termSet.isEmpty() && this.termSet.contains(term); } PhenoSetImpl(UnionFind<TermId> hpoTermUnionFind); @Override Set<TermId> getSet(); @Override boolean sameSet(TermId term); @Override boolean hasOccurred(TermId term); @Override void add(TermId hpoTerm);  }### Answer:
@Test public void hasOccurred() { assertFalse(phenoSet.hasOccurred(hypocapnia.getId())); phenoSet.add(hypocapnia.getId()); assertTrue(phenoSet.hasOccurred(hypocapnia.getId())); assertFalse(phenoSet.hasOccurred(hypercapnia.getId())); phenoSet.add(hypercapnia.getId()); assertTrue(phenoSet.hasOccurred(hypercapnia.getId())); }