NestedLdapAuthoritiesPopulator extends DefaultLdapAuthoritiesPopulator implements InitializingBean { public void afterPropertiesSet() throws Exception { Assert.notNull( extraRolesMapping ); } NestedLdapAuthoritiesPopulator( final ContextSource contextSource, final String groupSearchBase ); Set getGroupMembershipRoles( String userDn, String username ); Map getExtraRolesMapping(); void setExtraRolesMapping( final Map extraRolesMapping ); void afterPropertiesSet();  }
@Test( expected = IllegalArgumentException.class ) public void testAfterPropertiesSet() throws Exception { authoritiesPopulator.afterPropertiesSet(); }