What problem does it solve? Choosing the right testing approach for Spring Boot applications is confusing: developers often overuse @SpringBootTest, rely on deprecated APIs like @MockBean and TestRestTemplate, or write verbose assertions that are hard to maintain. This Skill provides expert guidance on selecting the narrowest appropriate test slice and writing modern, readable tests for Spring Boot 4. ## Core Features & Use Cases - Test Slice Selection: Decision matrices and a quick decision tree for choosing between @WebMvcTest, @DataJpaTest, @RestClientTest, @JsonTest, and @SpringBootTest. - Modern Testing APIs: Guidance on MockMvcTester, RestTestClient, @MockitoBean, and Testcontainers with real databases instead of H2. - AssertJ & Test Data: Fluent assertion patterns for scalars and collections, plus Instancio for generating complex test objects. - Use Case: You need to test a REST controller in a Spring Boot 4 project. The Skill directs you to @WebMvcTest with MockMvcTester, shows the object-conversion assertion pattern, and provides the correct modular starter dependency. ## Quick Start Ask the assistant to write a test for your Spring Boot controller or repository and it will select the right test slice with modern Spring Boot 4 patterns.