Client client = new Client(new MySpaceProvider(),
new OAuth2LeggedScheme(MYSPACE_KEY, MYSPACE_SECRET, MYSPACE_ID));
Request request = ProfileCommentsService.getComments();
Response response = client.send(request);
Comment comment = response.getEntry();
assertTrue(comment.getId() != null);
assertTrue(comment.getBody() != null);
assertTrue(comment.getAuthorId() != null);
assertTrue(comment.getPostedDate() != null);
} catch (Exception e) {
fail("Exception occurred while processing request");
}
}