@Test
public void testRegisterListener() throws Exception
{

    EnvironmentEventListener listener = mock( EnvironmentEventListener.class );
    environmentManager.registerListener( listener );
    assertTrue( environmentManager.listeners.contains( listener ) );
}