### Question:
StacktracePrintingMatcher extends
        org.hamcrest.TypeSafeMatcher<T> { @Factory public static <T extends Exception> Matcher<T> isException( Matcher<T> exceptionMatcher) { return new StacktracePrintingMatcher<T>(exceptionMatcher); } StacktracePrintingMatcher(Matcher<T> throwableMatcher); void describeTo(Description description); @Factory static Matcher<T> isThrowable(
            Matcher<T> throwableMatcher); @Factory static Matcher<T> isException(
            Matcher<T> exceptionMatcher);  }### Answer:
@Test public void failsWhenInnerMatcherFails() throws Exception { assertFalse(isException(notNullValue(Exception.class)).matches(null)); }