### Question:
PostComment extends Entity { public Post getOwnerPost() { return post; }  JCUser getAuthor(); void setAuthor(JCUser author); boolean isCreatedBy(JCUser user); DateTime getCreationDate(); void setCreationDate(DateTime creationDate); String getBody(); void setBody(String body); Post getOwnerPost(); Post getPost(); void setPost(Post post); Map<String, String> getAttributes(); void setAttributes(Map<String, String> attributes); void putAttribute(String attributeName, String attributeValue); void putAllAttributes(Map<String, String> attributes); DateTime getDeletionDate(); void setDeletionDate(DateTime deletionDate); DateTime getModificationDate(); void setModificationDate(DateTime modificationDate); JCUser getUserChanged(); void setUserChanged(JCUser userChanged); static final int BODY_MIN_LENGTH; static final int BODY_MAX_LENGTH; }### Answer:
@Test public void getOwnerPostShouldReturnFirstPostOfCodeReviewTopic() { Post expectedOwnerPost = new Post(); PostComment postComment = createCommentAttachedTo(expectedOwnerPost); Post actualOwnerPost = postComment.getOwnerPost(); assertEquals("It should return first post of owner topic, cause it contains code review.", expectedOwnerPost, actualOwnerPost); }