@Test(expected = SecurityProviderCreationException.class)
public void testInvalidGroupSearchScope() throws Exception {

    final AuthorizerConfigurationContext configurationContext = getBaseConfiguration(null, GROUP_SEARCH_BASE);
    when(configurationContext.getProperty(PROP_GROUP_MEMBER_ATTRIBUTE)).thenReturn(new StandardPropertyValue("member"));
    when(configurationContext.getProperty(PROP_GROUP_SEARCH_SCOPE)).thenReturn(new StandardPropertyValue("not-valid"));
    ldapUserGroupProvider.onConfigured(configurationContext);
}