Assert.assertTrue(dataObject.getString("myAttr").equals("helloworld.HelloWorldImpl"));
}
public void testLoad() throws Exception {
XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(xml));
XMLDocument document = streamHelper.load(reader);
Assert.assertNotNull(document);
Assert.assertEquals(document.getRootElementURI(), module.getNamespaceURI());
Assert.assertEquals(document.getRootElementName(), module.getLocalPart());
DataObject moduleObject = document.getRootObject();
List components = moduleObject.getList("component");
DataObject componentObject = (DataObject) components.get(0);
// componentObject.getDataObject("implementation.mock");
DataObject implObject = (DataObject) componentObject.getSequence(0).getValue(0);
Assert.assertTrue(implObject.getString("myAttr").equals("helloworld.HelloWorldImpl"));