ForumTopic forumTopic = createForumTopic(forum, title, title);
ForumReply forumReply = createForumReply(forumTopic, title, title);
addSnippetParam("ForumService.replyUuid", forumReply.getReplyUuid());
JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
JsonJavaObject json = previewPage.getJson();
Assert.assertNull("Unexpected error detected on page", json.getString("code"));
Assert.assertEquals(forumReply.getReplyUuid(), json.getString("replyUuid"));
forumReply = getForumReply(forumReply.getTopicUuid(), false);
Assert.assertNull("Deleted forum topic is still available", forumReply);
}