public void testCopyInto() { Element e1 = new Element(); e1.setElementType( LabelType.INSTANCE ); Element e2 = new Element(); e2.setElementType( NumberFieldType.INSTANCE ); e2.copyInto( e1 ); Assert.assertEquals( LabelType.INSTANCE, e1.getElementType() ); Assert.assertEquals( NumberFieldType.INSTANCE, e2.getElementType() ); }