\r
void testChildElementsUnmarshall() {\r
auto_ptr<XMLObject> xo(unmarshallElement(childElementsFile));\r
- AuthenticationStatement& as = dynamic_cast<AuthenticationStatement&>(*xo.get());\r
+ AuthenticationStatement& as1 = dynamic_cast<AuthenticationStatement&>(*xo.get());\r
+ as1.releaseThisAndChildrenDOM();\r
+ auto_ptr<AuthenticationStatement> as2(as1.cloneAuthenticationStatement());\r
+ AuthenticationStatement& as=*as2.get();\r
\r
TSM_ASSERT("Subject element", as.getSubject()!=NULL);\r
TSM_ASSERT("SubjectLocality element", as.getSubjectLocality()!=NULL);\r