@Test
public void test_processCallback_failed() {

    String state = "teststatecode";
    String code = "testauthcode";
    String pathStr = "?code="+code+"&state="+state;
    String responseJson = "{\"errors\":[\"Failed to get process callback\"]}";;
    Response response = getMockResponse(HttpStatus.BAD_REQUEST, true, responseJson);
    when(reqProcessor.process("/auth/oidc/oidc/callback","{\"path\":\""+pathStr+"\"}","")).thenReturn(response);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body(responseJson);
    ResponseEntity<String> responseEntity = oidcAuthService.processOIDCCallback(state, code);
    assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}