return (obj instanceof ChildObject);
}
});
RootObject first = new RootObject();
RootObject second = (RootObject)out.smartClone(first,safeToReuse);
assertTrue(first!=second);
assertEquals(first,second);
assertEquals(first.child,second.child);
assertTrue(first.child==second.child);