requestMock.stubs().method("getAttribute").with(eq(KeyConstants.ACTIONS_CONTAINER)).will(
returnValue(actionsContainer));
StrutsTestAction action1 = (StrutsTestAction) actionFactory.getAction(request, mapping1, servlet);
StrutsTestAction action2 = (StrutsTestAction) actionFactory.getAction(request, mapping2, servlet);
TestAction action3 = (TestAction) actionFactory.getAction(request, mapping1, servlet);
TestAction action4 = (TestAction) actionFactory.getAction(request, mapping2, servlet);
assertNotNull(action1);
assertNotNull(action2);
assertNotSame(action1, action2);
assertSame(action1, action3);