public void testInterface() throws XMLStreamException, ConfigurationLoadException {
String interfaceName = MockService.class.getName();
String xml = "<externalService xmlns='http://www.osoa.org/xmlns/sca/0.9' name='test'><interface.java interface='" + interfaceName + "'/></externalService>";
XMLStreamReader reader = getReader(xml);
ExternalService es = (ExternalService) registry.load(reader, loaderContext);
reader.require(XMLStreamConstants.END_ELEMENT, EXTERNAL_SERVICE.getNamespaceURI(), EXTERNAL_SERVICE.getLocalPart());
assertEquals(XMLStreamConstants.END_DOCUMENT, reader.next());
assertNotNull(es);
assertEquals("test", es.getName());
ConfiguredService configuredService = es.getConfiguredService();
JavaServiceContract serviceContract = (JavaServiceContract) configuredService.getPort().getServiceContract();