Spring Boot Testing This skill provides expert guidance for testing Spring Boot applications with modern patterns and best practices. Examples target Spring Boot 4; see the compatibility note below for Boot 3. Compatibility: detect first Read the project's Spring Boot version and test dependencies before writing tests, and do not upgrade them implicitly. | | Spring Boot 3.x | Spring Boot 4.x | |--|-----------------|-----------------| | JUnit | 5 (Jupiter) | 6 by default (same annotations; JUnit 5 tests keep working) | | Mock beans | / from 3.4 (Spring Framework 6.2); / are deprecated | replac…