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