IsSubsetOfIterable extends TypeSafeMatcher<Iterable<? super K>> { @Override public void describeTo(final Description description) { description.appendText("iterable is subset"); } IsSubsetOfIterable(final Iterable<? super K> comparison); static Matcher<Iterable<K>> subsetOf(final Iterable<? super K> comparison); @Override boolean matchesSafely(final Iterable<? super K> actual); @Override void describeMismatchSafely(final Iterable<? super K> iterable, final Description mismatchDescription); @Override void describeTo(final Description description);  }
@Test public void testDescribeTo() throws Exception { BaseMatcherTest.assertIsDescribedTo("iterable is subset", isSubsetOfIterableMatcher); }