### Question:
TabletSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory { public boolean isRequestForSite(HttpServletRequest request) { return request.getRequestURI().startsWith(this.getFullTabletPath()) || request.getRequestURI().equals(this.getCleanTabletPath()); } TabletSitePathUrlFactory(final String tabletPath, final String mobilePath);  TabletSitePathUrlFactory(final String tabletPath, final String mobilePath, final String rootPath); boolean isRequestForSite(HttpServletRequest request); String createSiteUrl(HttpServletRequest request);  }### Answer:
@Test public void isRequestForRootSite() { request.setRequestURI("/tablet/"); assertTrue(basicRootFactory.isRequestForSite(request)); }
@Test public void isRequestForPathSite() { request.setRequestURI("/showcase/tablet/"); assertTrue(basicPathFactory.isRequestForSite(request)); }
@Test public void notRequestForRootSite() { request.setRequestURI("/"); assertFalse(basicRootFactory.isRequestForSite(request)); }
@Test public void notRequestForPathSite() { request.setRequestURI("/showcase/"); assertFalse(basicPathFactory.isRequestForSite(request)); }
@Test public void notRequestForRootSiteWithPath() { request.setRequestURI("/marvelous/"); assertFalse(basicRootFactory.isRequestForSite(request)); }
@Test public void notRequestForPathSiteWithPath() { request.setRequestURI("/showcase/marvelous/"); assertFalse(basicPathFactory.isRequestForSite(request)); }