// check for clone and copy override with correct return type
TestDataTemplateUtil.assertCloneAndCopyReturnType(fixedClass);
// test clone
FixedTemplate fixedClone = fixed.clone();
assertSame(fixedClone.getClass(), fixed.getClass());
assertSame(fixedClone.bytes(), fixed.bytes());
// test copy
FixedTemplate fixedCopy = fixed.clone();
assertSame(fixedCopy.getClass(), fixed.getClass());
assertSame(fixedCopy.bytes(), fixed.bytes());
}
catch (Exception exc)
{
fail("Unexpected exception", exc);
}