### Question:
RequireJsPackageConfigurationImpl implements IRequireJsPackageConfiguration { @Override public boolean hasScript( final String name ) { return this.requireJsPackage.hasScript( name ); } RequireJsPackageConfigurationImpl( IRequireJsPackage requireJsPackage ); @Override void processRequireJsPackage(); @Override void processDependencies( BiFunction<String, String, IRequireJsPackageConfiguration> dependencyResolver ); @Override Map<String, Object> getRequireConfig( List<IRequireJsPackageConfigurationPlugin> plugins ); @Override Map<String, String> getBaseModuleIdsMapping(); @Override Map<String, String> getModuleIdsMapping(); @Override IRequireJsPackage getRequireJsPackage(); @Override String getName(); @Override String getVersion(); @Override Map<String, String> getDependencies(); @Override boolean hasScript( final String name ); @Override URL getScriptResource( final String name ); @Override String getWebRootPath();  }### Answer:
@Test public void hasScript() { IRequireJsPackage mockRequireJsPackage = getRequireJsPackageMock(); RequireJsPackageConfigurationImpl packageConfiguration = new RequireJsPackageConfigurationImpl( mockRequireJsPackage ); doReturn( false ).when( mockRequireJsPackage ).hasScript( anyString() ); doReturn( true ).when( mockRequireJsPackage ).hasScript( "preconfig" ); assertEquals( "Should return RequireJsPackage hasScript result", true, packageConfiguration.hasScript( "preconfig" ) ); assertEquals( "Should return RequireJsPackage hasScript result", false, packageConfiguration.hasScript( "postconfig" ) ); }