@Test
public void testGetEnvironmentAlertHandlers() throws Exception
{

    EnvironmentAlertHandler environmentAlertHandler = mock( EnvironmentAlertHandler.class );
    doReturn( Sets.newHashSet( environmentAlertHandler ) ).when( environment ).getAlertHandlers();
    doReturn( "ID" ).when( environmentAlertHandler ).getAlertHandlerId();
    doReturn( AlertHandlerPriority.HIGH ).when( environmentAlertHandler ).getAlertHandlerPriority();
    AlertHandler alertHandler = mock( AlertHandler.class );
    environmentManager.alertHandlers.put( "ID", alertHandler );
    assertFalse( environmentManager.getEnvironmentAlertHandlers( TestHelper.ENVIRONMENT_ID ).getAllHandlers()
                                   .isEmpty() );
}