assertEquals("end-point-reference", e.getNodeName()); assertEquals("myEndpoint", e.getAttributeNodeNS("http:
assertEquals("end-point-reference", e.getLocalName()); assertEquals("myEndpoint", e.getAttributeNodeNS("http:
    public void testGetReference() throws Exception {        InternalEndpoint endpoint = new InternalEndpoint(null, "myEndpoint", new QName("http://foo.bar.com", "myService"));        DocumentFragment df = EndpointReferenceBuilder.getReference(endpoint);        assertNotNull(df);        log.info(new SourceTransformer().toString(df));        Element e = (Element) df.getFirstChild();        assertEquals("http://java.sun.com/jbi/end-point-reference", e.getNamespaceURI());        assertEquals("end-point-reference", e.getNodeName());        assertEquals("myEndpoint", e.getAttributeNodeNS("http://java.sun.com/jbi/end-point-reference", "end-point-name"));        assertEquals(new QName("http://foo.bar.com", "myService"),                     DOMUtil.createQName(e, e.getAttributeNS("http://java.sun.com/jbi/end-point-reference", "service-name")));    }