### Question:
MetaInfRequireJson implements IRequireJsPackage { public String getExports() { return this.exports; } MetaInfRequireJson( Map<String, Object> requireJsonObject ); @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 ); URL getScriptResource( String name ); @Override Map<String, Map<String, ?>> getConfig(); @Override Map<String, Map<String, String>> getMap(); @Override Map<String, Map<String, ?>> getShim(); boolean isAmdPackage(); String getExports();  }### Answer:
@Test public void getExports() { MetaInfRequireJson requireJson = new MetaInfRequireJson( requireMeta ); assertNull( requireJson.getExports() ); }
@Test public void getExportsLastNonAmd() { final Map<String, Map<String, Map<String, Map<String, Object>>>> meta = (Map<String, Map<String, Map<String, Map<String, Object>>>>) requireMeta.get( "requirejs-osgi-meta" ); meta.get( "modules" ).get( "smart-table" ).get( "2.0.3-1" ).put( "isAmdPackage", false ); meta.get( "modules" ).get( "smart-table" ).get( "2.0.3-1" ).put( "exports", "var1" ); meta.get( "modules" ).get( "smart-table-min" ).get( "2.0.3-1" ).put( "isAmdPackage", false ); meta.get( "modules" ).get( "smart-table-min" ).get( "2.0.3-1" ).put( "exports", "var2" ); MetaInfRequireJson requireJson = new MetaInfRequireJson( requireMeta ); assertEquals( "var2", requireJson.getExports() ); }
@Test public void getExportsOnlyIfNonAmd() { final Map<String, Map<String, Map<String, Map<String, Object>>>> meta = (Map<String, Map<String, Map<String, Map<String, Object>>>>) requireMeta.get( "requirejs-osgi-meta" ); meta.get( "modules" ).get( "smart-table" ).get( "2.0.3-1" ).put( "isAmdPackage", true ); meta.get( "modules" ).get( "smart-table" ).get( "2.0.3-1" ).put( "exports", "var1" ); meta.get( "modules" ).get( "smart-table-min" ).get( "2.0.3-1" ).put( "isAmdPackage", true ); meta.get( "modules" ).get( "smart-table-min" ).get( "2.0.3-1" ).put( "exports", "var2" ); MetaInfRequireJson requireJson = new MetaInfRequireJson( requireMeta ); assertNull( requireJson.getExports() ); }