def METHOD_NAME(mock_echo_error, mock_sys_exit):
    echo.exit_error(brief="You failed!", resolution="Try again!")
    mock_echo_error.assert_called_once_with(
        dedent(
            """\
    You failed!
    Recommended resolution:
    Try again!"""
        )
    )
    mock_sys_exit.assert_called_once_with(2)