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