sdf.setTimeZone(timezone);
return sdf;
}
private static FacebookClient createFixedResponseFacebookClient(String pathToJson) throws IOException {
WebRequestor wr = new ClasspathWebRequestor(JSON_RESOURCES_PREFIX + pathToJson);
String jsonBody = wr.executeGet(null).getBody();
Assert.assertTrue("path to json not found:" + JSON_RESOURCES_PREFIX + pathToJson,
(jsonBody != null) && (jsonBody.length() > 0));
return new DefaultFacebookClient(null, wr, new DefaultJsonMapper());
}