static final String SNIPPET_ID = "Social_Profiles_API_GetCachedProfile";
@Test
public void testCachedProfile() {
addSnippetParam("sample.email1", TestEnvironment.getCurrentUserEmail());
JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
List jsonList = previewPage.getJsonList();
Assert.assertEquals(20, jsonList.size());
for (int i=0; i<20; i++) {
JsonJavaObject json = (JsonJavaObject)jsonList.get(i);
Assert.assertTrue(json.getInt("profileLoaded") > 0);
}