diff --git a/byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/TransformationActionTest.java b/byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/TransformationActionTest.java
index <HASH>..<HASH> 100644
--- a/byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/TransformationActionTest.java
+++ b/byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/TransformationActionTest.java
@@ -86,7 +86,7 @@ public class TransformationActionTest {
         when(byteBuddyExtension.getTransformations()).thenReturn(Collections.singletonList(transformation));
         when(byteBuddyExtension.getInitialization()).thenReturn(initialization);
         when(parent.getDestinationDir()).thenReturn(target);
-        when(transformation.getClassPath(any(File.class), any(Iterable.class))).thenReturn(Collections.emptySet());
+        when(transformation.getClassPath(any(File.class), any(Iterable.class))).thenReturn(Collections.<File>emptySet());
         when(parent.getClasspath()).thenReturn(fileCollection);
         when(fileCollection.iterator()).then(new Answer<Iterator<File>>() {
             @Override
Fixed type inference that does not apply before Java 8.