public void testCompound() throws XMLStreamException, ConfigurationLoadException {
String xml = "<wire xmlns='http://www.osoa.org/xmlns/sca/0.9'><source.uri>foo/fooService</source.uri><target.uri>bar/bazService</target.uri></wire>";
XMLStreamReader reader = getReader(xml);
Wire wire = (Wire) registry.load(reader, loaderContext);
reader.require(XMLStreamConstants.END_ELEMENT, AssemblyConstants.WIRE.getNamespaceURI(), AssemblyConstants.WIRE.getLocalPart());
assertEquals(XMLStreamConstants.END_DOCUMENT, reader.next());
assertNotNull(wire);
assertEquals("foo", wire.getSource().getPartName());
assertEquals("fooService", wire.getSource().getServiceName());
assertEquals("bar", wire.getTarget().getPartName());