### Question:
MethodSortMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return sort.isSort(target); } MethodSortMatcher(Sort sort); boolean matches(T target); @Override String toString();  }### Answer:
@Test public void testMatch() throws Exception { mockImplementation.prepare(methodDescription); assertThat(new MethodSortMatcher<MethodDescription>(sort).matches(methodDescription), is(true)); }
@Test public void testNoMatch() throws Exception { assertThat(new MethodSortMatcher<MethodDescription>(sort).matches(methodDescription), is(false)); }