testProps.setProperty(DURABLE_SUBSCRIPTION_PROPNAME, true);
// Disconnect the consumer.
testProps.setProperty(RECEIVER_CONSUMER_ACTIVE_PROPNAME, false);
CircuitFactory circuitFactory = getCircuitFactory();
Circuit testCircuit = circuitFactory.createCircuit(getConnection(), testProps);
// Send one message and get a linked no consumers exception.
assertNoFailures(testCircuit.test(1,
assertionList(((AMQPPublisher) testCircuit.getPublisher()).noConsumersAssertion(testProps))));
}