byte[] bytes = baos.toByteArray();
baos.close();
InputStream is = new ByteArrayInputStream(bytes);
GerConnectorDocument gcDoc = GerConnectorDocument.Factory.parse(is);
GerResourceadapterType ra = gcDoc.getConnector().getResourceadapterArray()[0];
GerResourceadapterInstanceType rai = ra.getResourceadapterInstance();
assertEquals("TestRAName", rai.getResourceadapterName());
GerConfigPropertySettingType rasetting = rai.getConfigPropertySettingArray(0);
assertEquals("TestRAValue", rasetting.getStringValue());
//admin object
// GerAdminobjectType adminobjectType1 = ra.getAdminobjectArray(0);
// GerAdminobjectInstanceType adminobjectInstanceType2 = adminobjectType1.getAdminobjectInstanceArray(0);