### Question:
HostnameModificationWorkflow extends CancellableWorkflow<HostnameModificationWorkflow.HostnameModificationPhase> { public HostnameModificationPhase CHANGE_HOSTNAME() { operationTracker.addLog( "Modifying container hostname" ); ChangeHostnameStep changeHostnameStep = new ChangeHostnameStep( environmentManager, environment, containerId, newHostname ); try { environment = ( LocalEnvironment ) changeHostnameStep.execute(); oldHostname = changeHostnameStep.getOldHostname(); newHostname = changeHostnameStep.getNewHostname(); saveEnvironment(); return HostnameModificationPhase.UPDATE_ETC_HOSTS_FILE; } catch ( Exception e ) { fail( e.getMessage(), e ); return null; } } HostnameModificationWorkflow( final LocalEnvironment environment, final ContainerId containerId,
                                         final String newHostname, final TrackerOperation operationTracker,
                                         final EnvironmentManagerImpl environmentManager, final String oldHostname );  HostnameModificationWorkflow( final LocalEnvironment environment, final ContainerId containerId,
                                         final String newHostname, final TrackerOperation operationTracker,
                                         final EnvironmentManagerImpl environmentManager ); HostnameModificationPhase INIT(); HostnameModificationPhase CHANGE_HOSTNAME(); HostnameModificationPhase UPDATE_ETC_HOSTS_FILE(); HostnameModificationPhase UPDATE_AUTHORIZED_KEYS_FILE(); void FINALIZE(); @Override void fail( final String message, final Throwable e ); @Override void onCancellation();  }### Answer:
@Test public void testCHANGE_HOSTNAME() throws Exception { workflow.CHANGE_HOSTNAME(); verify( environmentManager ).update( environment ); }