What problem does it solve? Java test suites often degrade into bloated, flaky, or meaningless tests that mock the wrong things, assert multiple behaviors at once, or pad coverage numbers by testing trivial DTOs. This Skill gives an AI agent a strict, opinionated rulebook so every generated unit test is isolated, readable, and actually signals what broke. ## Core Features & Use Cases - Behavior-focused test structure: Enforces one behavior per test with should<Behavior>_when<Condition>() naming, Given/When/Then bodies, and @Nested grouping by SuccessCases, FailureCases, EdgeCases, and Validation. - Correct mocking discipline: Mandates @ExtendWith(MockitoExtension.class) with @Mock/@InjectMocks, mocking only external dependencies and never the class under test, plus verify(...) for required side-effect interactions. - Honest coverage policy: Skips tests for behavior-free classes (DTO records, trivial entities, @Configuration classes) and excludes only those packages from JaCoCo, never excluding real business logic to hit a target. - Use Case: Ask the agent to write unit tests for a new OrderService; it reads the whole class first, enumerates branches and error paths, and produces a fast, fully mocked suite with AssertJ assertions and no database or network calls. ## Quick Start Write unit tests for the OrderService class following the unit-testing conventions, covering success, failure, and edge cases with mocked dependencies.