@Test
public void testGetEnvironment() throws Exception
{

    Environment theEnvironment = rootObject.getEnvironment();
    assertNotNull(theEnvironment);
    assertTrue(nodeService.exists(theEnvironment.getNodeRef()));
    assertEquals(PublishingModel.TYPE_ENVIRONMENT, nodeService.getType(theEnvironment.getNodeRef()));
}