### Question:
SuperTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isAssignableFrom(typeDescription); } SuperTypeMatcher(TypeDescription typeDescription); boolean matches(T target); @Override String toString();  }### Answer:
@Test public void testMatch() throws Exception { when(otherType.isAssignableFrom(typeDescription)).thenReturn(true); assertThat(new SuperTypeMatcher<TypeDescription>(typeDescription).matches(otherType), is(true)); verify(otherType).isAssignableFrom(typeDescription); verifyNoMoreInteractions(otherType); verifyZeroInteractions(typeDescription); }
@Test public void testNoMatch() throws Exception { when(otherType.isAssignableFrom(typeDescription)).thenReturn(false); assertThat(new SuperTypeMatcher<TypeDescription>(typeDescription).matches(otherType), is(false)); verify(otherType).isAssignableFrom(typeDescription); verifyNoMoreInteractions(otherType); verifyZeroInteractions(typeDescription); }