About
The Java Unit Test Writer skill provides specialized guidance for creating robust, readable, and maintainable Java unit tests. It enforces industry best practices such as the BDD structure (given/when/then), effective mocking strategies that prioritize real domain objects and fakes over excessive mocking, and the use of AssertJ's fluent API for expressive assertions. By implementing patterns like test builders and nested test classes, this skill ensures your test suite remains clean and provides clear documentation of system behavior.