### Question:
TypeMethodParameterFilter implements MethodParameterFilter { public boolean matches(NativeWebRequest request, MethodParameter methodParameter) { Class<?> parameterType = methodParameter.getParameterType(); for (Class<?> ignoredType : this.ignoredTypes) { if (ignoredType.isAssignableFrom(parameterType)) { return true; } } return false; } TypeMethodParameterFilter(Class<?>... ignoredTypes); boolean matches(NativeWebRequest request, MethodParameter methodParameter);  }### Answer:
@Test public void shouldIgnoreTypes() throws Exception { Method method = getMethod(); TypeMethodParameterFilter f = new TypeMethodParameterFilter(T1.class, T2.class); assertThat(f.matches(this.request, new MethodParameter(method, 0)), is(true)); assertThat(f.matches(this.request, new MethodParameter(method, 1)), is(true)); assertThat(f.matches(this.request, new MethodParameter(method, 2)), is(true)); assertThat(f.matches(this.request, new MethodParameter(method, 3)), is(false)); }