@Test( expected = EnvironmentModificationException.class )
public void testExecute() throws Exception
{

    doReturn( true ).when( taskResult ).hasSucceeded();
    step.execute();
    verify( environmentManager ).loadEnvironment( TestHelper.ENV_ID );
    assertEquals( NEW_HOSTNAME, step.getNewHostname() );
    assertNotSame( NEW_HOSTNAME, step.getOldHostname() );
    doReturn( false ).when( taskResult ).hasSucceeded();
    step.execute();
}