SshKeyRemovalWorkflow extends CancellableWorkflow<SshKeyRemovalWorkflow.SshKeyAdditionPhase> { public void FINALIZE() { environment.setStatus( EnvironmentStatus.HEALTHY ); saveEnvironment(); operationTracker.addLogDone( "Ssh key is removed" ); stop(); } SshKeyRemovalWorkflow( final LocalEnvironment environment, final String sshKey,
                                  final TrackerOperation operationTracker,
                                  final EnvironmentManagerImpl environmentManager ); SshKeyAdditionPhase INIT(); SshKeyAdditionPhase REMOVE_KEY(); void FINALIZE(); @Override void fail( final String message, final Throwable e ); @Override void onCancellation();  }
@Test public void testFINALIZE() throws Exception { workflow.FINALIZE(); verify( trackerOperation ).addLogDone( anyString() ); }