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