EnvironmentDestructionWorkflow extends CancellableWorkflow<EnvironmentDestructionWorkflow.EnvironmentDestructionPhase> { public EnvironmentDestructionPhase INIT() { operationTracker.addLog( "Initializing environment destruction" ); environment.setStatus( EnvironmentStatus.UNDER_MODIFICATION ); saveEnvironment(); return EnvironmentDestructionPhase.CLEANUP_ENVIRONMENT; } EnvironmentDestructionWorkflow( final EnvironmentManagerImpl environmentManager,
                                           final LocalEnvironment environment, final TrackerOperation operationTracker ); EnvironmentDestructionPhase INIT(); EnvironmentDestructionPhase CLEANUP_ENVIRONMENT(); void FINALIZE(); @Override void fail( final String message, final Throwable e ); @Override void onCancellation();  }
@Test public void testINIT() throws Exception { workflow.INIT(); verify( environmentManager, atLeastOnce() ).update( environment ); }