@Test
public void test_getAuthUrl_successful() {

    OidcRequest oidcRequest = new OidcRequest("default", "http://localhost:3000");
    String jsonStr = "{  \"role\": \"default\",  \"redirect_uri\": \"http://localhost:3000\"}";
    String responseJson = "{\n" +
            "  \"request_id\": \"test8b8-6ac68f0ab58d\",\n" +
            "  \"lease_id\": \"\",\n" +
            "  \"renewable\": false,\n" +
            "  \"lease_duration\": 0,\n" +
            "  \"data\": {\n" +
            "    \"auth_url\": \"https://login.authdomain.com/test123123/oauth2/v2.0/authorize?client_id=test123123&nonce=123123&redirect_uri=http%3A%2F%2Flocalhost%3A3000&response_type=code&scope=openid+https%3A%2F%2Fgraph.authdomain.com%2F.default+profile&state=test4343545\"\n" +
            "  },\n" +
            "  \"wrap_info\": null,\n" +
            "  \"warnings\": null,\n" +
            "  \"auth\": null\n" +
            "}";
    Response response = getMockResponse(HttpStatus.OK, 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.OK).body(responseJson);
    ResponseEntity<String> responseEntity = oidcAuthService.getAuthUrl(oidcRequest);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}