@Test
public void testValidateType() throws Exception {

  final List<Object> parameters = Arrays.<Object>asList("string", 1, new LinkedList<>());
  final List<Class<?>> types = Arrays.<Class<?>>asList(String.class, Integer.class,
      LinkedList.class);
  final RequestMethod<?> requestMethod = spy(RequestMethod.class);
  for (int i = 0; i < parameters.size(); ++i) {
    requestMethod.validateType(parameters, i, types.get(i));
  }
}