URLInformation { public String getDocumentUrl() { if (this.documentUrl == null) { String pubId = getPublicationId(); String area = getCompleteArea(); if (pubId != null && area != null) { String prefix = pubId + "/" + area; this.documentUrl = this.url.substring(prefix.length()); } } return this.documentUrl; } URLInformation(); String getWebappUrl(); String getPublicationId(); String getArea(); String getCompleteArea(); String getDocumentUrl();  }
@Test public void getDocumentURL(){ URLInformation urli = new URLInformation(); String durl = urli.getDocumentUrl(); assertEquals(durl, "/DocumentTest.html"); }