### Question:
ClosureJsCompiler implements JsCompiler { public Iterable<JsContent> getJsContent(JsUri jsUri, FeatureBundle bundle) { jsUri = new JsUri(jsUri) { @Override public boolean isDebug() { return true; } }; List<JsContent> builder = Lists.newLinkedList(defaultCompiler.getJsContent(jsUri, bundle)); CompilerOptions options = getCompilerOptions(jsUri); if (options.isExternExportsEnabled()) { List<String> exports = Lists.newArrayList(bundle.getApis(ApiDirective.Type.JS, true)); Collections.sort(exports); String prevExport = null; for (String export : exports) { if (!export.equals(prevExport)) { builder.add(JsContent.fromText( "goog.exportSymbol('" + StringEscapeUtils.escapeEcmaScript(export) + "', " + export + ");\n", "[export-symbol]")); prevExport = export; } } } return builder; } @Inject  ClosureJsCompiler(DefaultJsCompiler defaultCompiler, CacheProvider cacheProvider,
          @Named("shindig.closure.compile.level") String level);  ClosureJsCompiler(DefaultJsCompiler defaultCompiler, CacheProvider cacheProvider,
          String level, ExecutorService executorService); @Inject(optional = true) void setThreadPoolSize(
      @Named("shindig.closure.compile.threadPoolSize") Integer threadPoolSize); @Inject(optional = true) void setCompilerStackSize(
      @Named("shindig.closure.compile.compilerStackSize") Long compilerStackSize); CompilerOptions defaultCompilerOptions(); JsResponse compile(JsUri jsUri, Iterable<JsContent> content, String externs); Iterable<JsContent> getJsContent(JsUri jsUri, FeatureBundle bundle);  }### Answer:
@Ignore("This class was not being run and when I ran it this test did not pass. Not familiar enough to enable it.") @Test public void testGetJsContentWithGoogSymbolExports() throws Exception { realOptionsMock = mockRealJsCompilerOptions(true); compiler = newClosureJsCompiler(null, realOptionsMock, compilerMock, cacheMock); FeatureBundle bundle = mockBundle(EXPORTS); Iterable<JsContent> actual = compiler.getJsContent(mockJsUri(false), bundle); assertEquals(EXPORT_COMPILER_STRING + "goog.exportSymbol('bar', bar);\n" + "goog.exportSymbol('foo', foo);\n", getContent(actual)); }
@Ignore("This class was not being run and when I ran it this test did not pass. Not familiar enough to enable it.") @Test public void testGetJsContentWithoutGoogSymbolExports() throws Exception { realOptionsMock = mockRealJsCompilerOptions(false); compiler = newClosureJsCompiler(null, realOptionsMock, compilerMock, cacheMock); FeatureBundle bundle = mockBundle(EXPORTS); Iterable<JsContent> actual = compiler.getJsContent(mockJsUri(false), bundle); assertEquals(EXPORT_COMPILER_STRING, getContent(actual)); }