120121122123124125126127128129130
assertTrue(c1.equals(c2)); // check independence c1.clear(); assertFalse(c1.equals(c2)); c2.clear(); assertTrue(c1.equals(c2)); } /** * Serialize an instance, restore it, and check for equality.