}
boolean found = false;
while (it.hasNext()) {
Object obj = it.next();
if (obj instanceof AddressType) {
AddressType jmsAddress = (AddressType)obj;
if (!(jmsAddress.getDestinationStyle() != null
&& "queue".equalsIgnoreCase(jmsAddress.getDestinationStyle().toString()))) {
break;
}
if (!(jmsAddress.getJndiDestinationName() != null && jmsAddress.getJndiDestinationName()
.equals("dynamicQueues/test.cxf.jmstransport.queue"))) {
break;
}
assertEquals(2, jmsAddress.getJMSNamingProperty().size());
assertEquals("java.naming.factory.initial",
jmsAddress.getJMSNamingProperty().get(0).getName());
assertEquals("tcp://localhost:61616",
jmsAddress.getJMSNamingProperty().get(1).getValue());
found = true;
break;
}
}