I\'m doing migration small own library from java 8 and Spring Boot 1.5.x to java 11 and Spring Boot 2.3.x. I have some tests in code. And when I run them in java 8, all is fine,