GeneQueryResponse { public Set<String> getQueryTerms() { return geneIdsByQueryTerm.keySet(); }  GeneQueryResponse addGeneIds(String queryTerm, Set<String> geneIds); Set<String> getAllGeneIds(); boolean isEmpty(); Set<String> getQueryTerms(); boolean containsEntry(String queryTerm, String id); Collection<String> getIds(String queryTerm);  }
@Test public void testGetQueryTerms() { assertThat(subject.getQueryTerms(), containsInAnyOrder(A_QUERY_TERM)); subject.addGeneIds(anotherQueryTerm, Sets.newHashSet("G1", "G4")); assertThat(subject.getQueryTerms(), containsInAnyOrder(A_QUERY_TERM, ANOTHER_TERM)); }