### Question:
PentahoWebPackageImpl implements IPentahoWebPackage { public String getName() { return this.name; } PentahoWebPackageImpl( String resourceRootPath, URL packageJsonUrl ); String getName(); String getVersion(); String getResourceRootPath(); @Override String getWebRootPath(); @Override Map<String, Object> getPackageJson();  }### Answer:
@Test public void testGetNameShouldReturnPackageNameGivenTheUrlInConstructor() { String expectedName = this.packageName; URL mockUrl = this.createMockUrlConnection( mockPackageJson ); PentahoWebPackageImpl pentahoWebPackage = new PentahoWebPackageImpl( null, mockUrl ); String actualName = pentahoWebPackage.getName(); assertEquals( "Should return Package name", expectedName, actualName ); }