Assert.assertEquals(subscribe.getConsumerReference().getReference().getEndpointAddress().getAddress().toString(), testUrl);
XMLOutputFactory xof = XMLOutputFactory.newInstance();
StringWriter testWriter = new StringWriter();
XMLStreamWriter writer = xof.createXMLStreamWriter(testWriter);
der.encode(subscribe, writer);
writer.flush();
String encoded = testWriter.toString();
Assert.assertEquals(encoded, testSubscribe);
}