### Question:
IssuesSearchRequest extends SearchRequest { public IssuesSearchRequest setIsPublic(Boolean isPublic) { add(new BooleanSearchItem("is", isPublic, "public", "private")); return this; }  IssuesSearchRequest setIsOpen(boolean isOpen); IssuesSearchRequest setIsPullRequest(Boolean isPullRequest); IssuesSearchRequest setIsPublic(Boolean isPublic); IssuesSearchRequest setActionAndAuthor(String action, String author); IssuesSearchRequest setRepo(String repo, String userName); IssuesSearchRequest setUser(String user);  }### Answer:
@Test public void shouldContainIsPublic_whenIsPublicTrue() { String s = builder.setIsPublic(true).build(); assertThat(s).contains("is:public"); }
@Test public void shouldContainIsPrivate_whenIsPublicFalse() { String s = builder.setIsPublic(false).build(); assertThat(s).contains("is:private"); }