public void testDeleteForumTopic() {
String title = createForumTopicName();
ForumTopic forumTopic = createForumTopic(forum, title, title);
addSnippetParam("ForumService.topicUuid", forumTopic.getTopicUuid());
JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
JsonJavaObject json = previewPage.getJson();
Assert.assertNull("Unexpected error detected on page", json.getString("code"));
Assert.assertEquals(forumTopic.getTopicUuid(), json.getString("topicUuid"));
forumTopic = getForumTopic(forumTopic.getTopicUuid(), false);
Assert.assertNull("Deleted forum topic is still available", forumTopic);