persistence.updatePolicy(queue2.getRelativeUrl(), policy);
for (CQSQueue e: persistence.listQueues(user.getUserId(), QUEUE_PREFIX, false)) {
CQSQueue q = persistence.getQueue(e.getRelativeUrl());
assertTrue(policy.equals(q.getPolicy()));
persistence.deleteQueue(e.getRelativeUrl());
}
} catch (PersistenceException e) {
fail("Test failed:" + e.toString());
}