@Test
public void arrayPathParam() throws Exception {

  endpointMethod = EndpointMethod.create(TestApi.class,
      TestApi.class.getMethod("testArrayPathParam", ArrayList.class));
  methodConfig = apiConfig.getApiClassConfig().getMethods().get(endpointMethod);
  RestServletRequestParamReader reader = createReader(ImmutableMap.of("values", "4,3,2,1"));
  Object[] params = reader.read();
  assertThat(params).hasLength(endpointMethod.getParameterClasses().length);
  assertThat(params).asList()
      .containsExactly(ImmutableList.of("4", "3", "2", "1"));
}