According to @Emmerich, the error occurs because XQCloneable extends the Cloneable interface, which is something like a funny clone() method, which is not actually defined in it, but rather in the Object class!
The semantics is that a copy of the attributes should be created based on the attributes of the classes that implement Cloneable , and that these classes should @Override use the clone() method, since the Object version simply throws a CloneNotSupportedException .
Should your mock and uni-test create an instance / clone of the XQPart implementation for you to decide / define - in most cases I would not expect this and just return the null method or identifier.
Greetings
source share