@Override
    public Statement apply(Statement base, Description description) {
      if (!compilerType.equals(CompilerType.ECJ)) {
        return base;
      }
      return new EcjCompilationStatement(base);
    }
An equivalent to {@link CompilationRule} that uses ecj (the Eclipse compiler) instead of javac.
If the parameterized test is not selecting ecj then this rule has no effect.
common/src/test/java/com/google/auto/common/OverridesTest.java