JUnit has the "assertEquals" methods of the class. The Hamcrest library provides similar methods . The library has lot more methods and are more readable.