UnionizingLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator, InitializingBean { public void afterPropertiesSet() throws Exception { Assert.notNull( populators, Messages.getInstance().getString( "UnionizingLdapAuthoritiesPopulator.ERROR_0001_POPULATOR_NULL" ) ); } UnionizingLdapAuthoritiesPopulator(); Collection<? extends GrantedAuthority> getGrantedAuthorities( final DirContextOperations userData, final String username ); void setPopulators( final Set<LdapAuthoritiesPopulator> populators ); void afterPropertiesSet();  }
@Test( expected = IllegalArgumentException.class ) public void testAfterPropertiesSet() throws Exception { UnionizingLdapAuthoritiesPopulator populator = new UnionizingLdapAuthoritiesPopulator(); populator.afterPropertiesSet(); }