doc.getRootObject(), doc.getRootElementURI(), doc.getRootElementName());
assertTrue(strdoc.indexOf("<sg:imInTypeB>thisIsElB</sg:imInTypeB>") != -1);
}
public void testSubGroup_AcontainsB() {
A a = (A) scope.getDataFactory().create(A.class);
B b = (B) scope.getDataFactory().create(B.class);
b.setImInTypeB("thisIsElB");
a.setGe1(b);
assertSame(b, a.getGe1());
assertSame(b, ((AImpl) a).get(AImpl.GE1));
String doc = scope.getXMLHelper().save((DataObject) a,
"http://example.com/subgroup", "a");
assertTrue(doc.indexOf("<sg:imInTypeB>thisIsElB</sg:imInTypeB>") != -1);