nbced.start();
XMLInputFactory xif = XMLInputFactory.newInstance();
XMLStreamReader reader = xif.createXMLStreamReader(new StringReader(testRemoveBroker));
reader.next();
RemoveBroker removeBroker = (RemoveBroker)der.decode(reader);
Assert.assertEquals(removeBroker.getBrokerConsumerReference().getReference().getEndpointAddress().getAddress().toString(),
testUrl);
NeighborBrokerConsumers neighborBrokerConsumers = removeBroker.getNeighborBrokerConsumers();
Assert.assertEquals(neighborBrokerConsumers.getSequenceType(), "BrokerConsumers");
Iterator<EndpointReference> it = neighborBrokerConsumers.getReferenceSequence().iterator();
it.next();
Assert.assertEquals(it.next().getEndpointAddress().getAddress().toString(), testUrl2);