@Test
public void testStartMonitoring() throws Exception
{

    AlertHandler alertHandler = mock( AlertHandler.class );
    environmentManager.alertHandlers.put( "ID", alertHandler );
    doReturn( environment ).when( environmentManager ).update( environment );
    environmentManager.startMonitoring( "ID", AlertHandlerPriority.HIGH, TestHelper.ENV_ID );
    verify( environmentManager ).update( environment );
}