String queueName2 = QUEUE_PREFIX + randomGenerator.nextLong();
CQSQueue queue2 = new CQSQueue(queueName2, user.getUserId());
persistence.createQueue(queue2);
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());
}