### Question:
PhenoSetImpl implements PhenoSet { @Override public boolean sameSet(TermId term) { if (termSet.isEmpty()) { return false; } else { return this.hpoTermUnionFind.inSameSet(term, termSet.iterator().next()); } } 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 sameSet() { assertFalse(phenoSet.sameSet(hypocapnia.getId())); phenoSet.add(hypercapnia.getId()); assertTrue(phenoSet.sameSet(hypocapnia.getId())); }