### Question:
OAuth1Template implements OAuth1Operations { public String buildAuthorizeUrl(String requestToken, OAuth1Parameters parameters) { return buildAuthUrl(authorizeUrl, requestToken, parameters); } OAuth1Template(String consumerKey, String consumerSecret, String requestTokenUrl, String authorizeUrl, String accessTokenUrl);  OAuth1Template(String consumerKey, String consumerSecret, String requestTokenUrl, String authorizeUrl, String accessTokenUrl, OAuth1Version version);  OAuth1Template(String consumerKey, String consumerSecret, String requestTokenUrl, String authorizeUrl, String authenticateUrl, String accessTokenUrl);  OAuth1Template(String consumerKey, String consumerSecret, String requestTokenUrl, String authorizeUrl, String authenticateUrl, String accessTokenUrl, OAuth1Version version); void setRequestFactory(ClientHttpRequestFactory requestFactory); OAuth1Version getVersion(); OAuthToken fetchRequestToken(String callbackUrl, MultiValueMap<String, String> additionalParameters); String buildAuthorizeUrl(String requestToken, OAuth1Parameters parameters); String buildAuthenticateUrl(String requestToken, OAuth1Parameters parameters); OAuthToken exchangeForAccessToken(AuthorizedRequestToken requestToken, MultiValueMap<String, String> additionalParameters);  }### Answer:
@Test public void buildAuthorizeUrl() { OAuth1Parameters parameters = new OAuth1Parameters(null); parameters.setCallbackUrl("https: assertEquals(AUTHORIZE_URL + "?oauth_token=request_token", oauth10a.buildAuthorizeUrl("request_token", OAuth1Parameters.NONE)); assertEquals(AUTHORIZE_URL + "?oauth_token=request_token&oauth_callback=https%3A%2F%2Fwww.someclient.com%2Foauth%2Fcallback", oauth10.buildAuthorizeUrl("request_token", parameters)); }
@Test public void buildAuthorizeUrl_customAuthorizeParameters() { OAuth1Parameters parameters = new OAuth1Parameters(null); parameters.setCallbackUrl("https: assertEquals(AUTHORIZE_URL + "?oauth_token=request_token&oauth_callback=https%3A%2F%2Fwww.someclient.com%2Foauth%2Fcallback&custom_parameter=custom_parameter_value", customOauth10.buildAuthorizeUrl("request_token", parameters)); }