@@ -0,0 +1,989 @@
+package org.swcraft.javase.collections.puzzle;%0A%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Test;%0A%0Apublic class PersonTest %7B%0A%0A%09@Test%0A%09public void testReflexive() throws Exception %7B%0A%09%09Person x = new Person(%22A%22, %22B%22);%0A%09%09assertTrue(x.equals(x));%0A%09%7D%0A%09%0A%09@Test%0A%09public void testSymmetric() throws Exception %7B%0A%09%09Person x = new Person(%22A%22, %22B%22);%0A%09%09Person y = new Person(%22A%22, %22B%22);%0A%09%09assertTrue(x.equals(y) && y.equals(x));%0A%09%7D%0A%09%0A%09@Test%0A%09public void testDifferentPeople() throws Exception %7B%0A%09%09Person x = new Person(%22A%22, %22B%22);%0A%09%09Person y = new Person(%22C%22, %22B%22);%0A%09%09assertFalse(x.equals(y));%0A%09%7D%0A%09%0A%09@Test%0A%09public void testTransitive() throws Exception %7B%0A%09%09Person x = new Person(%22A%22, %22B%22);%0A%09%09Person y = new Person(%22A%22, %22B%22);%0A%09%09Person z = new Person(%22A%22, %22B%22);%0A%09%09assertTrue(x.equals(y) && y.equals(z) && x.equals(y));%0A%09%7D%0A%09%0A%09@Test%0A%09public void testNull() throws Exception %7B%0A%09%09Person x = new Person(%22A%22, %22B%22);%0A%09%09assertFalse(x.equals(null));%0A%09%7D%0A%7D%0A

Test for person class (without 1 import test case)