### Question:
RequireJsPackageImpl implements IRequireJsPackage { @Override public String getName() { return this.pentahoWebPackage.getName(); } RequireJsPackageImpl( IPentahoWebPackage pentahoWebPackage, URI resourceRoot ); @Override String getName(); @Override String getVersion(); @Override String getWebRootPath(); @Override boolean preferGlobal(); @Override Map<String, String> getModules(); @Override String getModuleMainFile( String moduleId ); @Override Map<String, String> getDependencies(); @Override boolean hasScript( String name ); @Override URL getScriptResource( String name ); @Override Map<String, Map<String, ?>> getConfig(); @Override Map<String, Map<String, String>> getMap(); @Override Map<String, Map<String, ?>> getShim();  }### Answer:
@Test public void testGetName() { String expectedPackageName = "SomePackageName"; when( mockPentahoWebPackage.getName() ).thenReturn( expectedPackageName ); this.requireJsPackage = new RequireJsPackageImpl( this.mockPentahoWebPackage, this.resourceRootUri ); String actualName = this.requireJsPackage.getName(); assertEquals( "Names should be equal", expectedPackageName, actualName ); }