### Question:
IssuesSearchRequest extends SearchRequest { public IssuesSearchRequest setIsOpen(boolean isOpen) { add(new BooleanSearchItem("is", isOpen, "open", "closed")); 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 shouldContainIsOpen_whenOnlyStateAndIsOpen() { builder.setIsOpen(true); String s = builder.build(); assertThat(s).contains("is:open"); }
@Test public void shouldContainIsClosed_whenOnlyStateAndIsClosed() { builder.setIsOpen(false); String s = builder.build(); assertThat(s).contains("is:closed"); }