GeneQueryResponse { public GeneQueryResponse addGeneIds(String queryTerm, Set<String> geneIds) { checkArgument(StringUtils.isNotBlank(queryTerm)); if (!geneIdsByQueryTerm.containsKey(queryTerm)) { if (!geneIds.isEmpty()) { geneIdsByQueryTerm.putAll(queryTerm, geneIds); } } return this; }  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 addGeneIdsShouldNotAddSameTerm() { subject.addGeneIds(A_QUERY_TERM, Sets.newHashSet("G6")); }
@Test(expected = IllegalArgumentException.class) public void addGeneIdsShouldNotAllowForBlankTerms() { subject.addGeneIds("", Sets.newHashSet("G1", "G2")); }
@Test(expected = IllegalArgumentException.class) public void addGeneIdsShouldNotAllowForNullTerms() { subject.addGeneIds(null, Sets.newHashSet("G1", "G2")); }