final String id = "123sdge234";
final String identityId = "136492yf9wfhw";
final String activityId = "12345689abcdefgh";
final long postedTime = System.currentTimeMillis();
final String createdAt = "Tue Jun 21 15:09:19 +0700 2011";
RestComment restComment = new RestComment(id, identityId, activityId, postedTime, createdAt);
assertThat("restComment must not be null", restComment, notNullValue());
assertThat("restComment.getId() must return: " + id, restComment.getId(), equalTo(id));
assertThat("restComment.getIdentityId() must return: " + identityId, restComment.getIdentityId(), equalTo(identityId));
assertThat("restComment.getActivityId() must return: " + activityId, restComment.getActivityId(), equalTo(activityId));
assertThat("restComment.getPostedTime() must return: " + postedTime, restComment.getPostedTime(), equalTo(postedTime));
assertThat("restComment.getCreatedAt() must return: " + createdAt, restComment.getCreatedAt(), equalTo(createdAt));
}