queueArguments.put(Queue.NAME, queueName);
queueArguments.put(Queue.DURABLE, durable);
queueArguments.put(Queue.LIFETIME_POLICY, LifetimePolicy.PERMANENT);
queueArguments.put(Queue.EXCLUSIVE, exclusive ? ExclusivityPolicy.CONTAINER : ExclusivityPolicy.NONE);
AMQSessionModel sessionModel = mock(AMQSessionModel.class);
AMQConnectionModel connectionModel = mock(AMQConnectionModel.class);
when(sessionModel.getConnectionModel()).thenReturn(connectionModel);
when(connectionModel.getRemoteContainerName()).thenReturn(queueOwner);
SessionPrincipal principal = new SessionPrincipal(sessionModel);
AMQQueue<?> queue = Subject.doAs(new Subject(true,
Collections.singleton(principal),
Collections.emptySet(),
Collections.emptySet()),