diff --git a/core/src/test/java/com/google/errorprone/bugpatterns/testdata/BadComparablePositiveCases.java b/core/src/test/java/com/google/errorprone/bugpatterns/testdata/BadComparablePositiveCases.java
index <HASH>..<HASH> 100644
--- a/core/src/test/java/com/google/errorprone/bugpatterns/testdata/BadComparablePositiveCases.java
+++ b/core/src/test/java/com/google/errorprone/bugpatterns/testdata/BadComparablePositiveCases.java
@@ -16,6 +16,7 @@
 
 package com.google.errorprone.bugpatterns.testdata;
 
+import java.io.File;
 import java.util.Comparator;
 
 /** @author irogers@google.com (Ian Rogers) */
@@ -53,4 +54,12 @@ public class BadComparablePositiveCases {
           return (int) (n1 - n2);
         }
       };
+
+  static final Comparator<File> COMPARATOR_FILE_INT_CAST =
+      new Comparator<File>() {
+        public int compare(File lhs, File rhs) {
+          // BUG: Diagnostic contains: return Long.compare(rhs.lastModified(), lhs.lastModified())
+          return (int) (rhs.lastModified() - lhs.lastModified());
+        }
+      };
 }
BadComparable test case with File.

This was a motivating case for BadComparable and so it makes a nice test.

RELNOTES: extra BadComparable test.

-------------
Created by MOE: <URL>