bpred.start();
XMLInputFactory xif = XMLInputFactory.newInstance();
XMLStreamReader reader = xif.createXMLStreamReader(new StringReader(testNewBroker));
reader.next();
NewBroker newBroker = (NewBroker)der.decode(reader);
Assert.assertEquals(newBroker.getBrokerConsumerReference().getReference().getEndpointAddress().getAddress().toString(),
testUrl1);
Assert.assertEquals(newBroker.getBrokerProducerReference().getReference().getEndpointAddress().getAddress().toString(),
testUrl2);
XMLOutputFactory xof = XMLOutputFactory.newInstance();
StringWriter testWriter = new StringWriter();
XMLStreamWriter writer = xof.createXMLStreamWriter(testWriter);