def METHOD_NAME(mock_echo_error, mock_sys_exit):
    echo.exit_error(
        brief="You failed!",
        resolution="Try again!",
        details="Try harder!",
        docs_url="https://snapcraft.io/failure",
        exit_code=5,
    )
    mock_echo_error.assert_called_once_with(
        dedent(
            """\
    You failed!
    Recommended resolution:
    Try again!
    Detailed information:
    Try harder!
    For more information, check out:
    https://snapcraft.io/failure"""
        )
    )
    mock_sys_exit.assert_called_once_with(5)