ThreeLeggedOauth10aGroupProviderApi extends DefaultApi10a { @Override public String getAuthorizationUrl(Token requestToken) { String authBaseUrl = (String) groupProvider.getAllowedOptions().get(AUTHORIZE_URL); if (StringUtils.hasText(authBaseUrl)) { return authBaseUrl + "?oauth_token=" + requestToken.getToken(); } throw new IllegalArgumentException("Missing or incorrect Group Provider option " + AUTHORIZE_URL); } ThreeLeggedOauth10aGroupProviderApi(GroupProvider groupProvider); @Override Verb getAccessTokenVerb(); @Override Verb getRequestTokenVerb(); @Override String getRequestTokenEndpoint(); @Override String getAccessTokenEndpoint(); @Override String getAuthorizationUrl(Token requestToken);  }
@Test(expected = IllegalArgumentException.class) public void testGetAuthorizationUrl_empty() throws Exception { ThreeLeggedOauth10aGroupProviderApi api = new ThreeLeggedOauth10aGroupProviderApi(groupProvider); Token token = new Token("mytoken", "secret"); api.getAuthorizationUrl(token); }