String appSecret = p.getProperty("oauth.appSecret");
ConfigurationBuilder build = new ConfigurationBuilder();
build.setOAuthAppId(appId);
build.setOAuthAppSecret(appSecret);
Configuration configuration = build.build();
HttpClientWrapper http = new HttpClientWrapper(configuration);
HttpResponse res = http.get(configuration.getOAuthAccessTokenURL() +
"?client_id=" + appId +
"&client_secret=" + appSecret +
"&grant_type=client_credentials");
AccessToken at = new AccessToken(res);
assertThat(at.getToken(), is(notNullValue()));