### Question:
IssuesSearchRequest extends SearchRequest { public IssuesSearchRequest setIsPullRequest(Boolean isPullRequest) { add(new MandatoryBooleanSearchItem("type", isPullRequest, "pr", "issue")); 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 shouldContainIsIssue_whenPullRequestFalse() { String s = builder.setIsPullRequest(false).build(); assertThat(s).contains("type:issue"); }
@Test public void shouldContainIsPr_whenPullRequestTrue() { String s = builder.setIsPullRequest(true).build(); assertThat(s).contains("type:pr"); }