testNodeNotInWorkspace(englishLiveSession, SITECONTENT_ROOT_NODE + "/home/page1/page1_subpage2",
"Sub Page 2 should not have been published");
// Case 3 : now let's unpublish the node and test it's presence in the live workspace.
getCleanSession();
jcrService.unpublish(Collections.singletonList(englishEditPage1NodeIdentifier), languages);
testNodeNotInWorkspace(englishLiveSession, SITECONTENT_ROOT_NODE + "/home/page1",
"Page 1 should have been unpublished !");
testNodeInWorkspace(englishLiveSession, SITECONTENT_ROOT_NODE + "/home/page1/page1_subpage1",
"Sub Page 1 should not have been published");
testNodeNotInWorkspace(englishLiveSession, SITECONTENT_ROOT_NODE + "/home/page1/page1_subpage2",