### Question:
Topic extends Entity implements SubscriptionAwareEntity { public PostDraft getDraftForUser(JCUser user) { for (PostDraft draft : getDrafts()) { if (draft.getAuthor().equals(user)) { return draft; } } return null; } Topic();  Topic(JCUser topicStarter, String title);  Topic(JCUser topicStarter, String title, String topicType); void addPost(Post post); void removePost(Post postToRemove); boolean userSubscribed(JCUser user); DateTime getCreationDate(); JCUser getTopicStarter(); @Fields({ @Field(name = TOPIC_TITLE_FIELD_RU, analyzer = @Analyzer(definition = "russianJtalksAnalyzer")), @Field(name = TOPIC_TITLE_FIELD_DEF, analyzer = @Analyzer(definition = "defaultJtalksAnalyzer")) }) String getTitle(); void setTitle(String newTitle); String getBodyText(); @IndexedEmbedded(prefix = TOPIC_POSTS_PREFIX) List<Post> getPosts(); Branch getBranch(); void setBranch(Branch branch); Post getFirstPost(); Post getLastPost(); Post getNeighborPost(Post post); DateTime getModificationDate(); void recalculateModificationDate(); DateTime getLastModificationPostDate(); boolean isSticked(); void setSticked(boolean sticked); boolean isAnnouncement(); void setAnnouncement(boolean announcement); int getPostCount(); int getViews(); void setViews(int views); Poll getPoll(); void setPoll(Poll poll); void setLastReadPostDate(DateTime lastReadPostDate); DateTime getLastReadPostDate(); Long getFirstUnreadPostId(); boolean isHasUpdates(); boolean isHasPoll(); @DocumentId @Override long getId(); @Override Set<JCUser> getSubscribers(); void setSubscribers(Set<JCUser> subscribers); @Override String getUrlSuffix(); @Override String getUnsubscribeLinkForSubscribersOf(Class<T> clazz); boolean isClosed(); void setClosed(boolean closed); String getType(); void setType(String type); Map<String, String> getAttributes(); void setAttributes(Map<String, String> attributes); void addOrOverrideAttribute(String attributeName, String attributeValue); boolean isCodeReview(); boolean isPlugable(); boolean isContainsOwnerPostsOnly(); List<PostDraft> getDrafts(); void setDrafts(List<PostDraft> drafts); void addDraft(PostDraft draft); PostDraft getDraftForUser(JCUser user); void removeDraft(PostDraft draft); void removeDraftOfUser(JCUser user); int getUserPostCount(JCUser user); Optional<String> getMarkAsReadUrl(JCUser user, String page); static final String URL_SUFFIX; static final int MIN_NAME_SIZE; static final int MAX_NAME_SIZE; static final String TOPIC_TITLE_FIELD_RU; static final String TOPIC_TITLE_FIELD_DEF; static final String TOPIC_POSTS_PREFIX; }### Answer:
@Test public void getDraftForUserShouldReturnNullIfDraftNotFound() { Topic topic = new Topic(); PostDraft draft = topic.getDraftForUser(new JCUser()); assertNull(draft); }