UserLdapProvider ldapProvider = (UserLdapProvider) factory.getBean("userLdapProvider");
assertNotNull(ldapProvider);
// userService
SomeAction action = (SomeAction) factory.getBean(SomeAction.class.getName());
assertNotNull(action);
assertTrue(action.hasDaoProvider());
assertTrue(action.hasLdapProvider());
assertTrue(action.getUserDaoProvider() == daoProvider);
assertTrue(action.getLdapProvider() == ldapProvider);
SomeAction action2 = (SomeAction) factory.getBean(SomeAction.class.getName());
assertTrue(action2 != action);
}