I\'m migrating an application from Java8 to Java11 and using the following dependencies Java 11 Spring: 5.1.0 powermock-module-junit4 : 2.0.2 powermock-api-mocki