assertNotNull(ref);
assertTrue(ref.equals("public-view"));
// TODO: menu testing
PageTemplate testpagetemplate = pageManager.getPageTemplate("/clonetest.tpsml");
assertNotNull(testpagetemplate);
PageTemplate clonepagetemplate = pageManager.copyPageTemplate(testpagetemplate, "/cloned.tpsml");
assertNotNull(clonepagetemplate);
assertTrue(clonepagetemplate.getId().equals("/cloned.tpsml"));
assertTrue(clonepagetemplate.getTitle().equals("Clone Test Page Template"));
assertTrue(clonepagetemplate.getSkin().equals("test-template-skin"));
assertTrue(clonepagetemplate.getDefaultDecorator(Fragment.LAYOUT).equals("test-template-layout"));
assertTrue(clonepagetemplate.getDefaultDecorator(Fragment.PORTLET).equals("test-template-portlet"));
GenericMetadata md = clonepagetemplate.getMetadata();
Collection descriptions = md.getFields("description");
assertNotNull(descriptions);
assertEquals(1, descriptions.size());
rootFragmentElement = clonepagetemplate.getRootFragment();
assertTrue(rootFragmentElement instanceof Fragment);
root = (Fragment)rootFragmentElement;
assertNotNull(root);
assertFalse(root.getId().equals("cpt-f001"));
assertTrue(root.getName().equals("TwoColumns"));