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

    final AuthorizerConfigurationContext configurationContext = getBaseConfiguration(null, "ou=groups-2,o=nifi");
    when(configurationContext.getProperty(PROP_GROUP_MEMBER_REFERENCED_USER_ATTRIBUTE)).thenReturn(new StandardPropertyValue("uid"));
    ldapUserGroupProvider.onConfigured(configurationContext);
}