@Test public void testClone(){ DefaultTestCase tc = new DefaultTestCase(); DefaultTestCase clone = (DefaultTestCase) tc.clone(); Assert.assertTrue(tc.statements != clone.statements); } }
Properties.CRITERION[0] = Criterion.MUTATION; DefaultTestCase testCopy = test.clone(); testCopy.changeClassLoader(loader); String code2 = testCopy.toCode();