### Question:
RequireJsPackageConfigurationImpl implements IRequireJsPackageConfiguration { @Override public void processDependencies( BiFunction<String, String, IRequireJsPackageConfiguration> dependencyResolver ) { this.dependencyCache = new HashMap<>(); this.baseModuleIdsMappingsWithDependencies = new HashMap<>(); Map<String, String> dependencies = this.getDependencies(); for ( String dependencyPackageName : dependencies.keySet() ) { String dependencyPackageVersion = dependencies.get( dependencyPackageName ); final IRequireJsPackageConfiguration dependencyResolvedVersion = dependencyResolver.apply( dependencyPackageName, dependencyPackageVersion ); if ( dependencyResolvedVersion != null ) { Map<String, String> dependencyBaseModuleIds = dependencyResolvedVersion.getBaseModuleIdsMapping(); dependencyBaseModuleIds.forEach( this.baseModuleIdsMappingsWithDependencies::put ); this.dependencyCache.put( dependencyPackageName, dependencyResolvedVersion ); } } this.baseModuleIdsMappings.forEach( this.baseModuleIdsMappingsWithDependencies::put ); } 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 processDependencies() { IRequireJsPackage mockRequireJsPackage = getRequireJsPackageMock( name, version, webRoot, modules, dependencies ); RequireJsPackageConfigurationImpl packageConfiguration = new RequireJsPackageConfigurationImpl( mockRequireJsPackage ); BiFunction<String, String, IRequireJsPackageConfiguration> dependencyResolverFunction = mock( BiFunction.class ); packageConfiguration.processDependencies( dependencyResolverFunction ); verify( dependencyResolverFunction, times( dependencies.size() ) ).apply( anyString(), anyString() ); }