adapter = (ServletServiceAdapterComponent)initAdapter("repeatedRequest.xml");
// lets get reference to the bean doing the heavy-lifting
// its a singleton, so we're cool
BeanFactory factory = servlet.getFactory();
MockViewPortWidget widget = (MockViewPortWidget)factory.getBean("rootWidget");
req.addParameter(StandardWidget.EVENT_HANDLER_ID_KEY, event);
req.addParameter(StandardWidgetContainerWidget.EVENT_PATH_KEY, widgetKey);
// first request, transactionId will get intialized
adapter.service(req, resp);
// helper returns true on null transactionId
MockEventfulStandardWidget child1 =
(MockEventfulStandardWidget)widget.getChildren().get(widgetKey);
req.addParameter(StandardTransactionFilterWidget.TRANSACTION_ID_KEY, ""+child1.getTransactionId());
// second request with the valid transactionId
adapter.service(req, resp);