### Question:
EnvironmentCreationWorkflow extends CancellableWorkflow<EnvironmentCreationWorkflow.EnvironmentCreationPhase> { public EnvironmentCreationPhase CONFIGURE_HOSTS() { operationTracker.addLog( "Configuring hosts" ); try { new RegisterHostsStep( topology, environment, operationTracker ).execute(); saveEnvironment(); return EnvironmentCreationPhase.CONFIGURE_SSH; } catch ( Exception e ) { fail( e.getMessage(), e ); return null; } } EnvironmentCreationWorkflow( String defaultDomain, IdentityManager identityManager,
                                        EnvironmentManagerImpl environmentManager, PeerManager peerManager,
                                        SecurityManager securityManager, LocalEnvironment environment,
                                        Topology topology, String sshKey, TrackerOperation operationTracker ); EnvironmentCreationPhase INIT(); EnvironmentCreationPhase GENERATE_KEYS(); EnvironmentCreationPhase RESERVE_NET(); EnvironmentCreationPhase SETUP_P2P(); EnvironmentCreationPhase PREPARE_TEMPLATES(); EnvironmentCreationPhase CLONE_CONTAINERS(); EnvironmentCreationPhase CONFIGURE_HOSTS(); EnvironmentCreationPhase CONFIGURE_SSH(); EnvironmentCreationPhase SET_QUOTA(); void FINALIZE(); @Override void fail( final String message, final Throwable e ); @Override void onCancellation();  }### Answer:
@Test public void testCONFIGURE_HOSTS() throws Exception { workflow.CONFIGURE_HOSTS(); verify( environmentManager, atLeastOnce() ).update( environment ); }