String state = RandomStringUtils.randomAlphabetic(10);
String key = RandomStringUtils.randomAlphabetic(10);
String secret = RandomStringUtils.randomAlphabetic(10);
LinkedInApi20 api = new LinkedInApi20(state);
OAuthService service = new ServiceBuilder().provider(api).apiKey(key).apiSecret(secret)
.callback("http://localhost:4502/linkedin").scope("r_basicprofile,r_emailaddress")
.build();
String expected = "https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=" + key
+ "&state=" + state + "&redirect_uri=" + OAuthEncoder.encode("http://localhost:4502/linkedin")