### Question:
PentahoWebPackageResourceMapping { public String getPath() { String resourceRootPath = this.pentahoWebPackage.getResourceRootPath(); while ( resourceRootPath.length() > 1 && resourceRootPath.endsWith( "/" ) ) { resourceRootPath = resourceRootPath.substring( 0, resourceRootPath.length() - 1 ); } return resourceRootPath; } PentahoWebPackageResourceMapping( IPentahoWebPackage pentahoWebPackage ); String getAlias(); String getPath(); String toString(); boolean equals( Object obj );  }### Answer:
@Test public void testGetPathShouldReturnValidResourcesRootPath() { this.pentahoWebPackageResourceMapping = new PentahoWebPackageResourceMapping( this.mockPentahoWebPackage ); String expectedResourcesRootPath = this.mockPentahoWebPackage.getResourceRootPath(); String actualResourcesRootPath = this.pentahoWebPackageResourceMapping.getPath(); assertEquals( "Should return valid Resources Root Path", expectedResourcesRootPath, actualResourcesRootPath ); }