### Question:
BooleanMatcher extends ElementMatcher.Junction.AbstractBase<T> { @Override public String toString() { return Boolean.toString(matches); } BooleanMatcher(boolean matches); boolean matches(T target); @Override String toString();  }### Answer:
@Test public void testToString() throws Exception { assertThat(new BooleanMatcher<Object>(true).toString(), is("true")); assertThat(new BooleanMatcher<Object>(false).toString(), is("false")); }