// recover should successfully restore session
_consumerSession.recover();
// tests whether receiving and acknowledgment is working after recover
Message lastMessage = consumeMessages();
lastMessage.acknowledge();
}
/**
* Test that first call to {@link Message#acknowledge()} after failover
* throws a JMSEXception if session is dirty.