Version 2.1.1 of Kafka for JUnit has been released. It fixes a compile-time issue that occurs if you have multiple dependency versions of Lombok on your classpath. Lombok is - as of this release - marked as a compile-time-only dependency.
See the changelog on GitHub.
You can obtain the binaries from Maven central or include the dependency using the following Maven coordinates in your build.
<dependency> <groupId>net.mguenther.kafka</groupId> <artifactId>kafka-junit</artifactId> <version>2.1.1</version> </dependency>