// TODO: assert error code and/or expected exception type
}
// tests whether receiving and acknowledgment is working on a clean session
lastMessage = consumeMessages();
lastMessage.acknowledge();
}
/**
* Tests that call to {@link Message#acknowledge()} after failover throws an exception in asynchronous consumer
* and we can consume messages after acknowledge.