Adding a jUnit test for testing the equals functionality