addSnippetParam("ForumService.topicUuid", forumTopic.getTopicUuid());
addSnippetParam("ForumService.topicTitle", updatedTitle);
addSnippetParam("ForumService.topicContent", updatedContent);
JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
JsonJavaObject json = previewPage.getJson();
Assert.assertNull("Unexpected error detected on page", json.getString("code"));
forumTopic = getForumTopic(forumTopic.getTopicUuid(), true);
Assert.assertEquals(forumTopic.getTopicUuid(), json.getString("getTopicUuid"));
Assert.assertEquals(updatedTitle, forumTopic.getTitle());
Assert.assertEquals(updatedContent, StringUtil.trim(forumTopic.getContent()));
}