### Question:
GenericCollectionTypeResolver { public static Class<?> getCollectionParameterType(MethodParameter methodParam) { return getGenericParameterType(methodParam, Collection.class, 0); }  static Class<?> getCollectionFieldType(Field collectionField); static Class<?> getMapKeyFieldType(Field mapField); static Class<?> getMapValueFieldType(Field mapField); static Class<?> getCollectionParameterType(MethodParameter methodParam); static Class<?> getMapKeyParameterType(MethodParameter methodParam); static Class<?> getMapValueParameterType(MethodParameter methodParam);  }### Answer:
@Test public void testCollectionMethodParameterType() throws Exception { final MethodParameter methodParameter = new MethodParameter(TestClass.class.getDeclaredMethod("configureList", List.class), 0); final Class<?> collectionParameterType = GenericCollectionTypeResolver.getCollectionParameterType( methodParameter); assertEquals(String.class, collectionParameterType); }