concept equals() in category junit

This is an excerpt from Manning's book JUnit Recipes: Practical Methods for Programmer Testing.
Writing tests like this will drive you to implement the equals() method for your Value Objects. See recipe 2.1, “Test your equals method,” for details on how your equals() method ought to behave. Once you have this technique under your belt, almost everything else you do with JUnit reduces to this one case.
When testing get and set methods, you apply this technique directly (see recipe 2.4, “Test a getter,” and recipe 2.5, “Test a setter”). In order to use this technique effectively, you need to implement equals() correctly (see recipe 2.1, “Test your equals method”), and in cases where you cannot apply this technique directly, you need to find another way to expose a return value so that you can compare it to your expectations (see recipe 2.2, “Test a method that returns nothing”). The other recipes in this chapter discuss various elementary tests that form the basis for the rest of the recipes in this book. These early recipes address the most common and simplest testing issues.
You want to test your implementation of equals().