### Question:
PentahoWebPackageImpl implements IPentahoWebPackage { @Override public String getWebRootPath() { return "/" + this.getName() + "@" + this.getVersion(); } PentahoWebPackageImpl( String resourceRootPath, URL packageJsonUrl ); String getName(); String getVersion(); String getResourceRootPath(); @Override String getWebRootPath(); @Override Map<String, Object> getPackageJson();  }### Answer:
@Test public void testGetWebRootPathShouldReturnValidWebRootPathGivenThePackageJsonOnTheUrl() { String name = "SomeName"; String version = "1.2.3"; String expectedWebRootPath = "/" + name + "@" + version; URL mockUrl = this.createMockUrlConnection( mockPackageJson ); PentahoWebPackageImpl pentahoWebPackage = new PentahoWebPackageImpl( null, mockUrl ); String actualWebRootPath = pentahoWebPackage.getWebRootPath(); assertEquals( "Should return WebPackage web root path", expectedWebRootPath, actualWebRootPath ); }