addSnippetParam("ForumService.forumUuid", forum.getForumUuid());
addSnippetParam("ForumService.forumTitle", updatedTitle);
addSnippetParam("ForumService.forumContent", updatedContent);
JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
JsonJavaObject json = previewPage.getJson();
Assert.assertNull("Unexpected error detected on page", json.getString("code"));
Forum uforum = getForum(forum.getForumUuid());
Assert.assertEquals(forum.getForumUuid(), json.getString("getForumUuid"));
Assert.assertEquals(updatedTitle, uforum.getTitle());
Assert.assertEquals(updatedContent, uforum.getContent());
}