@Test
public void testUnregisterListener() throws Exception
{

    EnvironmentEventListener listener = mock( EnvironmentEventListener.class );
    environmentManager.listeners.add( listener );
    environmentManager.unregisterListener( listener );
    assertFalse( environmentManager.listeners.contains( listener ) );
}