print("");
print("Checking test case 5...");
File file = createTestProfile(prof1);
PSMLDocument doc = getDocumentFromPath(file.getPath());
Portlets portlets = doc.getPortlets();
print("Portlets loaded as: " + portlets);
print("Directly setting the rootSet to a \"grey\"...");
Skin rootSkin = new PsmlSkin();
rootSkin.setName("grey");
portlets.setSkin(rootSkin);
print("Save and re-open document as if it were being loaded for the first time...");
saveDocument(doc);
// re-load everything...
doc = null;
doc = getDocumentFromPath(file.getPath());