def METHOD_NAME(self, click_mock, publish_application_mock):
    publish_application_mock.return_value = {
        "application_id": self.application_id,
        "details": {"attr1": "value1"},
        "actions": [CREATE_APPLICATION],
    }
    publish_cli(self.ctx_mock, self.template, None)
    details_str = json.dumps({"attr1": "value1"}, indent=2)
    expected_msg = "Created new application with the following metadata:\n{}"
    expected_link = self.console_link.format(self.ctx_mock.region, self.application_id.replace("/", "~"))
    click_mock.secho.assert_has_calls(
        [
            call("Publish Succeeded", fg="green"),
            call(expected_msg.format(details_str)),
            call(expected_link, fg="yellow"),
        ]
    )