### Question:
RequireJsPackageImpl implements IRequireJsPackage { @Override public Map<String, Map<String, ?>> getConfig() { return Collections.unmodifiableMap( this.config ); } 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 testGetConfig() { String configName = "someConfig"; Map<String, Map<String, String>> expectedConfigs = new HashMap<>(); Map<String, String> configuration = new HashMap<>(); expectedConfigs.put( configName, configuration ); Map<String, Object> configs = new HashMap<>(); configs.put( "config", expectedConfigs ); when( mockPentahoWebPackage.getPackageJson() ).thenReturn( configs ); this.requireJsPackage = new RequireJsPackageImpl( this.mockPentahoWebPackage, this.resourceRootUri ); Map<String, Map<String, ?>> actualConfigs = this.requireJsPackage.getConfig(); assertTrue( actualConfigs.containsKey( configName ) ); }