@Test
public void isNotLdapAuthentication() throws Exception {

    when(configurationUtil.isLdapProviderEnabled()).thenReturn(Boolean.FALSE);
    assertThat(user.isLdapAuthentication(), is(Boolean.FALSE));
}