URLInformation { public String getPublicationId() { if (this.publicationId == null) { this.publicationId = extractBeforeSlash(this.url); } return this.publicationId; } URLInformation(); String getWebappUrl(); String getPublicationId(); String getArea(); String getCompleteArea(); String getDocumentUrl();  }
@Test public void getPublicationIdTest(){ URLInformation urli = new URLInformation(); String pubId = urli.getPublicationId(); assertEquals(pubId,"test"); }