### Question:
PentahoWebPackageResourceMapping { public String toString() { return this.getClass().getSimpleName() + "{" + "alias=" + this.getAlias() + ",path=" + this.getPath() + "}"; } PentahoWebPackageResourceMapping( IPentahoWebPackage pentahoWebPackage ); String getAlias(); String getPath(); String toString(); boolean equals( Object obj );  }### Answer:
@Test public void testToStringShouldReturnValidToString() { this.pentahoWebPackageResourceMapping = new PentahoWebPackageResourceMapping( this.mockPentahoWebPackage ); String expectedAlias = mockPentahoWebPackage.getWebRootPath(); String expectedPath = mockPentahoWebPackage.getResourceRootPath(); String expectedToString = PentahoWebPackageResourceMapping.class.getSimpleName() + "{" + "alias=" + expectedAlias + ",path=" + expectedPath + "}"; String actualToString = this.pentahoWebPackageResourceMapping.toString(); assertEquals( "Should Return Valid To String", expectedToString, actualToString ); }