To be more clear. There are a method like this:
public String getAuthUrl() {
OAuth2Config oauth2Config = getOAuthConfig();
var resp2 = getContentApacheHttpClientNoAuth("
https://developer.xxxx/.well-known/configuration/");
}
Inside the method called by another library "
getOAuthConfig()" there is a call to the exactly URL (
https://developer.xxxx/.well-known/configuration/ ) that I want to stub the returned json.
In this case, resp2 (locally) is working but getOAuthConfig is not because is called by another library?