PageTitle { public String getSiteRootPageTitle() { Page rootPage = siteRoot.getRootPage(); if (rootPage != null) { return rootPage.getPageTitle(); } else { return null; } }  String getRecursivePageTitle(); String getSiteRootPageTitle();  }
@Test void testGetSiteRootPageTitle() throws Exception { PageTitle underTest = context.request().adaptTo(PageTitle.class); assertEquals("Handler Sample 2014", underTest.getSiteRootPageTitle()); }