@Test
public void test_listLdapGroups_failure_400() {

    String token = "4EpPYDSfgN2D4Gf7UmNO3nuL";
    Response response = getMockResponse(HttpStatus.BAD_REQUEST, false, "{\"errors\":[\"Missing token \"]}");
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body("{\"errors\":[\"Missing token \"]}");
    when(reqProcessor.process("/auth/ldap/groups/list","{}",token)).thenReturn(response);
    ResponseEntity<String> responseEntity = ldapAuthService.listLdapGroups("");
    assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}