}
private void test(String requestPath, String logicalPageName, String nestedComponentId,
String eventType, String... context) throws IOException
{
ComponentActionRequestHandler handler = newComponentActionRequestHandler();
Request request = mockRequest();
Response response = mockResponse();
ActionResponseGenerator generator = newMock(ActionResponseGenerator.class);
train_getPath(request, requestPath);
train_getParameter(request, InternalConstants.PAGE_CONTEXT_NAME, null);
expect(
handler.handle(
eq(logicalPageName),
eq(nestedComponentId),
eq(eventType),
aryEq(context),
aryEq(new String[0]))).andReturn(generator);