IsEmptyOptional extends TypeSafeMatcher<Optional> { @Override public void describeTo(final Description description) { description.appendText("an optional with no content"); }  static Matcher<Optional> emptyOptional(); @Override void describeTo(final Description description);  }
@Test public void testDescribeTo() throws Exception { assertIsDescribedTo("an optional with no content", isEmptyOptionalMatcher); }