As described in https://github.com/wro4j/wro4j/issues/1039#issuecomment-280018118, upgrading plugin version and its Mockito dependency brings a Mockito version using ByteBuddy and running under JDK 9.