@Test
public void testAddAlertHandler() throws Exception
{

    AlertHandler alertHandler = mock( AlertHandler.class );
    environmentManager.addAlertHandler( alertHandler );
    assertFalse( environmentManager.alertHandlers.containsValue( alertHandler ) );
    //-----
    doReturn( "ID" ).when( alertHandler ).getId();
    environmentManager.addAlertHandler( alertHandler );
    assertTrue( environmentManager.alertHandlers.containsValue( alertHandler ) );
}