{
msg = consumer.receive(5000);
assertNotNull(msg);
}
PageCursorProviderImpl cursor = (PageCursorProviderImpl)queue.getPageSubscription().getPagingStore().getCursorProvier();
boolean exceptionHappened = false;
try
{
server.destroyQueue(QUEUE);
}
catch (Exception e)
{
exceptionHappened = true;
}
assertTrue(exceptionHappened);
cursor.clearCache();
Thread.sleep(500);
msg.acknowledge();