
XClassManager sclass = TestAbstractXClassManagerTest.DispatchXClassManager.getInstance(context);
</BUG>
DefaultXObjectDocument sdoc =
<BUG>(DefaultXObjectDocument) sclass.newXObjectDocument(DEFAULT_DOCFULLNAME, 0, context);
</BUG>
assertNotNull(sdoc);
assertTrue(sdoc.isNew());
com.xpn.xwiki.api.Object obj = sdoc.getObject(sclass.getClassFullName());
assertNotNull(obj);

assertEquals(sdoc.getXClassManager(), sclass);
}
public void testInitXObjectDocumentDocName() throws XWikiException
{
documents.clear();
XClassManager sclass = TestAbstractXClassManagerTest.DispatchXClassManager.getInstance(getContext());
DefaultXObjectDocument sdoc =
(DefaultXObjectDocument) sclass.newXObjectDocument(DEFAULT_DOCFULLNAME, 0, getContext());
assertNotNull(sdoc);
assertTrue(sdoc.isNew());
com.xpn.xwiki.api.Object obj = sdoc.getObject(sclass.getClassFullName());
assertNotNull(obj);
