@Test
public void test_deleteLdapUser_failed_500() {

    String token = "4EpPYDSfgN2D4Gf7UmNO3nuL";
    Response response = getMockResponse(HttpStatus.INTERNAL_SERVER_ERROR, true, "{\"errors\":[\"LDAP User delete failed\"]}");
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("{\"errors\":[\"LDAP User delete failed\"]}");
    when(reqProcessor.process("/auth/ldap/users/delete","{\"username\":\"safeadmin\"}",token)).thenReturn(response);
    ResponseEntity<String> responseEntity = ldapAuthService.deleteLdapUser(token, "safeadmin");
    assertEquals(HttpStatus.INTERNAL_SERVER_ERROR, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}