@Test
public void isLdapAuthentication() throws Exception {

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