firstPanelCaption.assertVisible(true);
ElementInspector firstPanelContent = element("fn:firstFoldingPanelContent");
firstPanelContent.assertElementExists(false);
ElementInspector secondPanelCaption = element("fn:secondFoldingPanelCaption");
secondPanelCaption.assertElementExists(false);
ElementInspector secondPanelContent = element("fn:secondFoldingPanelContent");
secondPanelContent.assertElementExists(false);
foldingPanel("fn:firstFoldingPanelID").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
firstPanelContent.assertVisible(true);