Association extends RegistryObject { public String getTargetObject() { return adapter.getRequiredNodeAsString( adapter.getRootElement(), new XPath( "@targetObject", ns ) ); } Association( XMLStreamReader xmlReader );  Association( OMElement record ); String getSourceObject(); String getTargetObject(); String getAssociationType();  }
@Test public void testGetTargetObjectShouldBeParsedFromXml() { String actualTargetObject = association.getTargetObject(); assertEquals( "urn:ogc:def:EOP:RE00:MSI_IMG_3A:5397721:eoap", actualTargetObject ); }