expect(mockBuilder.buildArguments(requestData, routingResult)).andReturn(argsArray);
expect(resource.get(eq(1L))).andReturn(null).once();
mockCallback.onSuccess(eq(null), anyObject(RequestExecutionReport.class));
}
replay(resource, mockRegistry, mockBuilder, mockFilterContext, mockFilter, mockCallback);
invokerWithFilters.invoke(routingResult, request, mockCallback, false, mockFilterContext);
verify(resource, mockRegistry, mockBuilder, mockFilterContext, mockFilter);
if (throwExceptionFromFirstFilter)
{
assertEquals(requestData.getKey(), "Key");
}