assert invokeMethod("#{topicHome.persist}") == null;
Long newId = (Long)getValue("#{topicHome.instance.id}");
WikiNodeDAO nodeDAO = (WikiNodeDAO)getInstance(WikiNodeDAO.class);
WikiDocument newTopic = nodeDAO.findWikiDocument(newId);
assert newTopic.getAreaNumber().equals(100l);
FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
FeedEntry fe = feedDAO.findFeedEntry(newTopic);
assert fe.getTitle().equals("[Seam Users] New Topic");
assert newTopic.getHeaderMacrosString().contains("forumPosting");
assert newTopic.getFooterMacrosString().contains("forumReplies");
assert newTopic.getContent().equals("This is a new topic.");
assert !newTopic.isNameAsTitle();
assert newTopic.isEnableCommentForm();
assert newTopic.isEnableComments();
assert newTopic.isEnableCommentsOnFeeds();
assert newTopic.getWriteAccessLevel() == Role.ADMINROLE_ACCESSLEVEL;
}
}.run();
}