### Question:
MethodParameterTypesMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.asTypeList()); } MethodParameterTypesMatcher(ElementMatcher<? super List<? extends TypeDescription.Generic>> matcher); boolean matches(T target); @Override String toString();  }### Answer:
@Test public void testMatch() throws Exception { when(parameterMatcher.matches(typeList)).thenReturn(true); assertThat(new MethodParameterTypesMatcher<ParameterList<?>>(parameterMatcher).matches(parameterList), is(true)); verify(parameterMatcher).matches(typeList); verifyNoMoreInteractions(parameterMatcher); }
@Test public void testNoMatch() throws Exception { when(parameterMatcher.matches(typeList)).thenReturn(false); assertThat(new MethodParameterTypesMatcher<ParameterList<?>>(parameterMatcher).matches(parameterList), is(false)); verify(parameterMatcher).matches(typeList); verifyNoMoreInteractions(parameterMatcher); }