return Arrays.asList(new Object[] {"authorization-code/authorization-code-full-config-tls-global.xml"},
new Object[] {"authorization-code/authorization-code-full-config-tls-nested.xml"});
}
@Test
public void localAuthorizationUrlRedirectsToOAuthAuthorizationUrl() throws Exception {
<BUG>wireMockRule.stubFor(get(urlMatching(AUTHORIZE_PATH + ".*")).willReturn(aResponse().withStatus(200)));

HttpRequestOptions options = newOptions().enableFollowsRedirect().tlsContextFactory(createClientTlsContextFactory()).build();
muleContext.getClient().send(localAuthorizationUrl.getValue(), InternalMessage.builder().nullPayload().build(), options);
final List<LoggedRequest> requests = findAll(getRequestedFor(urlMatching(AUTHORIZE_PATH + ".*")));
assertThat(requests.size(), is(1));
</BUG>
AuthorizationRequestAsserter.create((requests.get(0))).assertMethodIsGet().assertClientIdIs(clientId.getValue())

return Arrays.asList(new Object[] {"authorization-code/authorization-code-full-config-tls-global.xml"},
new Object[] {"authorization-code/authorization-code-full-config-tls-nested.xml"});
}
@Test
public void localAuthorizationUrlRedirectsToOAuthAuthorizationUrl() throws Exception {
wireMockRule.stubFor(get(urlMatching(AUTHORIZE_PATH + ".*")).willReturn(aResponse().withStatus(OK.getStatusCode())));
HttpRequest request = HttpRequest.builder().setUri(localAuthorizationUrl.getValue()).setMethod(GET).build();
httpClient.send(request, RECEIVE_TIMEOUT, true, null);
final List<LoggedRequest> requests = findAll(getRequestedFor(urlMatching(AUTHORIZE_PATH + ".*")));
assertThat(requests, hasSize(1));
AuthorizationRequestAsserter.create((requests.get(0))).assertMethodIsGet().assertClientIdIs(clientId.getValue())
