returnValue(container));
requestMock.expects(atLeastOnce()).method("setAttribute").with(eq(KeyConstants.ACTIONS_CONTAINER),
isA(MutablePicoContainer.class));
container.registerComponentInstance("foo");
container.registerComponentImplementation(TestAction.class);
TestAction action1 = (TestAction) container.getComponentInstance(TestAction.class);
TestAction action2 = (TestAction) factory
.buildBean("org.nanocontainer.nanowar.webwork.TestAction");
assertSame(action1, action2);
}