public void testReuseOnCloning() throws Exception
{
JBossObjectOutputStream out = new JBossObjectOutputStream(null);
SafeCloningRepository safeToReuse = new SafeCloningRepository(new SafeClone()
{
public boolean isSafeToReuse(Object obj) {
return (obj instanceof ChildObject);
}
});