URLInformation { public String getCompleteArea() { String pubId = getPublicationId(); if (this.completeArea == null && pubId != null) { String pubUrl = this.url.substring(pubId.length()); if (pubUrl.startsWith("/")) { this.completeArea = extractBeforeSlash(pubUrl.substring(1)); } else { this.completeArea = null; } } return this.completeArea; } URLInformation(); String getWebappUrl(); String getPublicationId(); String getArea(); String getCompleteArea(); String getDocumentUrl();  }
@Test public void getCompleteAreaTest(){ URLInformation urli = new URLInformation(); String area = urli.getCompleteArea(); assertEquals(area, "authoring"); }