@Test
public void test_getAuthUrl_failed() {

    OidcRequest oidcRequest = new OidcRequest("default", "http://localhost:3000");
    String jsonStr = "{  \"role\": \"default\",  \"redirect_uri\": \"http://localhost:3000\"}";
    String responseJson = "{\"errors\":[\"Failed to get OIDC auth url\"]}";
    Response response = getMockResponse(HttpStatus.BAD_REQUEST, true, responseJson);
    when(JSONUtil.getJSON(any(OidcRequest.class))).thenReturn(jsonStr);
    when(reqProcessor.process("/auth/oidc/oidc/auth_url",jsonStr,"")).thenReturn(response);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body(responseJson);
    ResponseEntity<String> responseEntity = oidcAuthService.getAuthUrl(oidcRequest);
    assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}