Next Generation Java Testing
If you're into Java testing, I think Cedric Beust and Hani Suleiman's Next Generation Java Testing: Test NG and Advanced Concepts might be a book you can profitably own as a very good reference on your shelves.
The material coverage and presentation demonstrates a good deal of intelligent thinking, and most topics are discussed thoroughly enough.
True, the focus is on TestNG but reading paragraphs such as the following should help us become more sensible and not lose sight of what we want to achieve in tests:
The book includes a 3-page summary description of TestNG, chapters on design patterns, enterprise testing, Java EE testing, integration, extensions, and digressions. The digressions chapter has many insightful essays, including one on "The pitfalls of Test-Driven Development," where the authors correctly assert that TDD promotes microdesign over macrodesign and that it can be hard to apply in real situations.
The design patterns chapter forms the main core of the book and would be the primary focus of Java testing professionals.
The appendices include one on IDE integration, which, unfortunately, says little about NetBeans and focuses on Eclipse and IntelliJ only. This is definitely an area worth improving. Other appendices focus on migration from JUnit, TestNG XML scripting and Javadocs.
An important concept in TestNG is the notion of test "groups" which allows a clean separation between the static model of the tests (the code that has been written) and the runtime model (which tests and in what order they are run). A powerful organizing concept, memberships in groups are stated in TestNG annotations.