PMD is a static code analyzer that identifies common progrmamming mistakes, misuses of the Java API and language, and other general areas for code improvement and refactoring suggestions.
Tom Copeland, the developer of PMD and author of the book PMD Applied, has an article on his website as a free additional chapter to the book describing how to use PMD to analyze Unit Tests, to improve JUnits and make the tests more effective.