@Test
public void testCancelEnvironmentWorkflow() throws Exception
{

    doReturn( checkWorkflow ).when( activeWorkflows ).get( TestHelper.ENV_ID );
    environmentManager.cancelEnvironmentWorkflow( TestHelper.ENV_ID );
    verify( environmentManager ).removeActiveWorkflow( TestHelper.ENV_ID );
    //-----
    reset( activeWorkflows );
    doReturn( environment ).when( environmentManager ).update( environment );
    environmentManager.cancelEnvironmentWorkflow( TestHelper.ENV_ID );
    verify( environment ).setStatus( EnvironmentStatus.CANCELLED );
}