Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/tests/java/lang/ObjectCloneTest.java
package tests.java.lang;
/*
 * #%L
 * Evaluation
 * %%
 * Copyright (C) 2014 Github jjYBdx4IL Projects
 * %%
 * #L%
 */

import org.junit.Test;
import static org.junit.Assert.*;

public class ObjectCloneTest {
    enum TestEnum {
        ONE, TWO;
    }
    
    class TestClass implements Cloneable {
        public TestEnum testEnum;
        public String someAttr;
        public TestClass clone() throws CloneNotSupportedException {
            return (TestClass) super.clone();
        }
    }
    
    @Test
    public void test1() throws CloneNotSupportedException {
        TestClass tc = new TestClass();
        tc.someAttr = "123";
        tc.testEnum = TestEnum.ONE;
        TestClass tc2 = (TestClass) tc.clone();
        assertEquals("123", tc2.someAttr);
        assertEquals(TestEnum.ONE, tc2.testEnum);
    }
}
-------------------------------------------------------------------------------
Test set: tests.java.lang.ObjectCloneTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in tests.java.lang.ObjectCloneTest
test1  Time elapsed: 0 s