addSnippetParam("CommunityService.communityUuid", community.getCommunityUuid());
addSnippetParam("sample.communityTitle", updatedTitle);
addSnippetParam("sample.communityContent", updatedContent);
JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
JsonJavaObject json = previewPage.getJson();
Assert.assertNull("Unexpected error detected on page", json.getString("code"));
Assert.assertEquals(community.getCommunityUuid(), json.getString("getCommunityUuid"));
Assert.assertEquals(updatedTitle, json.getString("getTitle"));
Assert.assertEquals(updatedContent, json.getString("getContent"));
}