} catch (SocialClientLibException se) {
assert(se.getCause() instanceof NotFoundException);
}
RestActivity activity = new RestActivity();
activity.setTitle("Hello There");
activityService.create(activity);
startSessionAs("mary", "gtn");
try {
activityService.update(activity);
fail("Expecting ServiceException from ActivityService#update(RestActivity)");
} catch (ServiceException se) {
}
//create a activity to demo's stream
startSessionAs("root", "gtn");
RestActivity demoActivity = createActivities(1).get(0);
startSessionAs("mary", "gtn");
RestComment comment = new RestComment();
comment.setText("comment");