GeneQueryResponse { public boolean containsEntry(String queryTerm, String id) { return geneIdsByQueryTerm.containsEntry(queryTerm, id); }  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 containsEntryShouldReturnTrue() { assertThat(subject.containsEntry(A_QUERY_TERM, "G1"), is(true)); assertThat(subject.containsEntry(A_QUERY_TERM, "G2"), is(true)); }
@Test public void containsEntryShouldReturnFalse() { assertThat(subject.containsEntry(A_QUERY_TERM, "G3"), is(false)); assertThat(subject.containsEntry(ANOTHER_TERM, "G1"), is(false)); assertThat(subject.containsEntry(ANOTHER_TERM, "G3"), is(false)); }