assertEquals(TEST_DESCRIPTION, actualAttributes.get(Queue.DESCRIPTION));
}
public void testCreateQueueThatAlreadyExists() throws Exception
{
doThrow(new QueueExistsException("mocked exception", null)).when(_mockVirtualHost).createQueue(any(Map.class));
try
{
_virtualHostManagerMBean.createNewQueue(TEST_QUEUE_NAME, TEST_OWNER, true);
fail("Exception not thrown");