@Test
public void testRemoveAlertHandler() throws Exception
{

    AlertHandler alertHandler = mock( AlertHandler.class );
    environmentManager.alertHandlers.put( "ID", alertHandler );
    doReturn( "ID" ).when( alertHandler ).getId();
    environmentManager.removeAlertHandler( alertHandler );
    assertFalse( environmentManager.alertHandlers.containsValue( alertHandler ) );
}