def METHOD_NAME(
        self,
        echo_mock,
        prompt_for_cname_mock,
        clone_environment_mock
):
    clone_request_mock = mock.MagicMock()
    prompt_for_cname_mock.return_value = 'my-environment-cname'
    environment_mock = Environment.json_to_environment_object(mock_responses.CREATE_ENVIRONMENT_RESPONSE)
    clone_environment_mock.side_effect = [
        cloneops.InvalidParameterValueError('DNS name (in-use-cname.com) is not available.'),
        (environment_mock, 'request-id')
    ]
    self.assertEqual(
        (environment_mock, 'request-id'),
        cloneops.clone_env(clone_request_mock)
    )
    echo_mock.assert_called_once_with('The CNAME you provided is already in use.\n')