@@ -0,0 +1,1161 @@
+package info.persistent.react.jscomp;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport com.google.common.collect.ImmutableList;%0Aimport com.google.javascript.jscomp.Compiler;%0Aimport com.google.javascript.jscomp.CompilerOptions;%0Aimport com.google.javascript.jscomp.Result;%0Aimport com.google.javascript.jscomp.SourceFile;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.List;%0A%0A/**%0A * Test %7B@link React%7D.%0A */%0Apublic class ReactWarningsGuardTest %7B%0A  @Test public void testReactWarningsGuard() %7B%0A    Compiler compiler = new Compiler();%0A    CompilerOptions options = new CompilerOptions();%0A    options.addWarningsGuard(new ReactWarningsGuard());%0A    // Should not warn about non-standard JSDoc.%0A    List%3CSourceFile%3E inputs = ImmutableList.of(%0A        SourceFile.fromCode(%0A          %22/src/react.js%22, %22/** @providesModule React */%5Cnvar React%22));%0A    List%3CSourceFile%3E externs = ImmutableList.of(%0A      SourceFile.fromCode(%22externs%22, %22%22));%0A    Result result = compiler.compile(externs, inputs, options);%0A    assertTrue(result.success);%0A    assertEquals(result.errors.length, 0);%0A    assertEquals(result.warnings.length, 0);%0A  %7D%0A%7D%0A

Add test for ReactWarningsGuard.