@Test
public void testGetPublishingQueue() throws Exception
{

    PublishingQueueImpl theQueue = rootObject.getPublishingQueue();
    assertNotNull(theQueue);
    NodeRef queueNode = theQueue.getNodeRef();
    assertTrue(nodeService.exists(queueNode));
    assertEquals(PublishingModel.TYPE_PUBLISHING_QUEUE, nodeService.getType(queueNode));
    ChildAssociationRef parentAssoc = nodeService.getPrimaryParent(queueNode);
    assertEquals(PublishingModel.ASSOC_PUBLISHING_QUEUE, parentAssoc.getTypeQName());
    assertEquals(rootObject.getEnvironment().getNodeRef(), parentAssoc.getParentRef());
}