public void testExceptionOnPollAndCanStartAgain() throws Exception {
final Exception expectedException = new Exception("Hello, I should be thrown on shutdown only!");
MockScheduledPollConsumer consumer = new MockScheduledPollConsumer(expectedException);
consumer.setPollStrategy(new PollingConsumerPollStrategy() {
public void begin(Consumer consumer, Endpoint endpoint) {
}
public void commit(Consumer consumer, Endpoint endpoint) {
}