@Ignore
@Test
public void ldapAuthenticatorThrowsWhenAuthFails() throws Exception {

  // Zero results on a search indicates no valid user.
  when(dnSearchResult.getEntryCount()).thenReturn(0);
  Optional<User> missingUser =
      ldapAuthenticator.authenticate(new BasicCredentials("sysadmin", "badpass"));
  assertThat(missingUser).isEmpty();
}