### Question:
RequireJsPackageImpl implements IRequireJsPackage { @Override public Map<String, String> getDependencies() { return Collections.unmodifiableMap( this.dependencies ); } 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 testGetDependencies() { Map<String, String> expectedDependencies = new HashMap<>(); expectedDependencies.put( "a", "1.1.1" ); expectedDependencies.put( "b", "2.2.2" ); Map<String, Object> dependencies = new HashMap<>(); dependencies.put( "dependencies", expectedDependencies ); when( mockPentahoWebPackage.getPackageJson() ).thenReturn( dependencies ); this.requireJsPackage = new RequireJsPackageImpl( this.mockPentahoWebPackage, this.resourceRootUri ); Map<String, String> actualDependencies = this.requireJsPackage.getDependencies(); assertEquals( expectedDependencies, actualDependencies ); }