verify(_mockVirtualHost).createQueue(TEST_QUEUE_NAME, State.ACTIVE, true, false, LifetimePolicy.PERMANENT, 0, expectedArguments);
}
public void testDeleteQueue() throws Exception
{
Queue mockQueue = mock(Queue.class);
when(mockQueue.getName()).thenReturn("queue1");
when(_mockVirtualHost.getQueues()).thenReturn(Collections.singletonList(mockQueue));
_virtualHostManagerMBean.deleteQueue("queue1");
verify(mockQueue).delete();
}