### Question:
BaseOauth2Api implements Oauth2Api { @Override public String getAuthorisationUri(String scaOAuthUrl) { return getAuthorisationServerMetaData(scaOAuthUrl) .getAuthorisationEndpoint(); } BaseOauth2Api(HttpClient httpClient, Class<T> metaDataModelClass); @Override String getAuthorisationUri(String scaOAuthUrl); @Override String getTokenUri(String scaOAuthUrl);  }### Answer:
@Test void getAuthorisationUri() { when(httpClient.get(any())).thenReturn(requestBuilder); doReturn(dummyResponse()).when(requestBuilder).send(any()); String actual = api.getAuthorisationUri(SCA_OAUTH_URL); verify(httpClient, times(1)).get(urlCaptor.capture()); verify(requestBuilder, times(1)).send(any()); assertThat(actual).isEqualTo(AUTHORISATION_ENDPOINT); assertThat(urlCaptor.getValue()).isEqualTo(SCA_OAUTH_URL); }