*/
public void testQueueConfiguration() throws Exception
{
int capacity = 345;
QueueManager queueManager = muleContext.getQueueManager();
QueueManager mockTransactionalQueueManager = mock(QueueManager.class);
when(mockTransactionalQueueManager.getQueueSession()).thenReturn(queueManager.getQueueSession());
// Replace queueManager instance with mock via registry as it cannot be set
// once muleContext is initialized.
muleContext.getRegistry().registerObject(MuleProperties.OBJECT_QUEUE_MANAGER,
mockTransactionalQueueManager);