public void testRejectBehaviourPresent() throws URISyntaxException
{
String url = "exchangeClass://exchangeName/Destination/Queue?rejectbehaviour='server'";
AMQBindingURL burl = new AMQBindingURL(url);
assertTrue(url.equals(burl.toString()));
assertTrue(burl.getExchangeClass().equalsCharSequence("exchangeClass"));
assertTrue(burl.getExchangeName().equalsCharSequence("exchangeName"));
assertTrue(burl.getDestinationName().equalsCharSequence("Destination"));
assertTrue(burl.getQueueName().equalsCharSequence("Queue"));
//check that the MaxDeliveryCount property has the right value
assertEquals("server",burl.getOption(BindingURL.OPTION_REJECT_BEHAVIOUR));
//check that the MaxDeliveryCount value is correctly returned from an AMQDestination
class MyTestAMQDestination extends AMQDestination
{
public MyTestAMQDestination(BindingURL url)