TestingDynamoHttpServletRequest request = getServletTestUtils().createDynamoHttpServletRequestForSession(
getNucleus(), createValueParametersMapForNewRequest(), 1024, "GET", getSessionId()
);
if (request.getResponse() instanceof TestingDynamoHttpServletResponse) {
TestingDynamoHttpServletResponse testResponse = ((TestingDynamoHttpServletResponse) request
.getResponse());
testResponse.setBlockDispatches(true);
testResponse.setRecordDispatches(true);
}
return request;
}