--- jsr166/src/test/tck/AtomicLongTest.java 2011/08/09 04:49:38 1.25 +++ jsr166/src/test/tck/AtomicLongTest.java 2013/05/30 03:28:55 1.26 @@ -196,9 +196,10 @@ public class AtomicLongTest extends JSR1 public void testSerialization() throws Exception { AtomicLong x = new AtomicLong(); AtomicLong y = serialClone(x); - assertTrue(x != y); + assertNotSame(x, y); x.set(-22); AtomicLong z = serialClone(x); + assertNotSame(y, z); assertEquals(-22, x.get()); assertEquals(0, y.get()); assertEquals(-22, z.get());