### Question:
RequireJsPackageImpl implements IRequireJsPackage { @Override public Map<String, Map<String, String>> getMap() { return Collections.unmodifiableMap( this.localMap ); } 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 testGetMap() { String mapName = "someMap"; Map<String, Map<String, String>> expectedMap = new HashMap<>(); Map<String, String> map = new HashMap<>(); map.put( "aMapEntry", "path/to/something" ); expectedMap.put( mapName, map ); Map<String, Object> configs = new HashMap<>(); configs.put( "map", expectedMap ); when( mockPentahoWebPackage.getPackageJson() ).thenReturn( configs ); this.requireJsPackage = new RequireJsPackageImpl( this.mockPentahoWebPackage, this.resourceRootUri ); Map<String, Map<String, String>> actualMap = this.requireJsPackage.getMap(); assertTrue( "Should have the map", actualMap.containsKey( mapName ) ); }