--- jsr166/src/test/tck/AtomicReferenceTest.java 2011/06/10 20:17:11 1.20 +++ jsr166/src/test/tck/AtomicReferenceTest.java 2014/12/31 19:05:42 1.22 @@ -6,9 +6,11 @@ * Pat Fisher, Mike Judd. */ -import junit.framework.*; import java.util.concurrent.atomic.AtomicReference; +import junit.framework.Test; +import junit.framework.TestSuite; + public class AtomicReferenceTest extends JSR166TestCase { public static void main(String[] args) { junit.textui.TestRunner.run(suite()); @@ -119,9 +121,10 @@ public class AtomicReferenceTest extends public void testSerialization() throws Exception { AtomicReference x = new AtomicReference(); AtomicReference y = serialClone(x); - assertTrue(x != y); + assertNotSame(x, y); x.set(one); AtomicReference z = serialClone(x); + assertNotSame(y, z); assertEquals(one, x.get()); assertEquals(null, y.get()); assertEquals(one, z.get());