TestAction action = new TestAction();
ActionExecutingViewFactory factory = new ActionExecutingViewFactory(action);
MockRequestContext context = new MockRequestContext();
View view = factory.getView(context);
assertFalse(action.isExecuted());
view.render();
assertTrue(action.isExecuted());
context.putRequestParameter("_eventId_foo", "doesn't matter");
view.processUserEvent();
assertTrue(view.hasFlowEvent());
assertEquals("foo", view.getFlowEvent().getId());