@Test
public void shouldConvertArrayParametersToIndexParameters() throws Exception {

	when(request.getParameterNames()).thenReturn(Collections.enumeration(Arrays.asList("someParam[].id", "unrelatedParam")));
	when(request.getParameterValues("someParam[].id")).thenReturn(new String[] {"one", "two", "three"});
	instantiator.intercept(stack, method, null);
	verify(request).setParameter("someParam[0].id", "one");
	verify(request).setParameter("someParam[1].id", "two");
	verify(request).setParameter("someParam[2].id", "three");
}