RequestMethod method = RequestMethod.GET;
String url = "https://graph.facebook.com/foo/bar";
HttpParameter[] parameters = new HttpParameter[1];
parameters[0] = new HttpParameter("hoge", "1");
ConfigurationBuilder cb = new ConfigurationBuilder().setOAuthAccessToken("access_token");
OAuthAuthorization authorization = new OAuthAuthorization(cb.build());
Map<String, String> requestHeaders = new HashMap<String, String>();
HttpRequest actual = new HttpRequest(method, url, parameters, authorization, requestHeaders);
assertThat(new URL(actual.getURL()), is(pathOf("/foo/bar")));
assertThat(new URL(actual.getURL()), hasParameter("access_token", "access_token"));