def METHOD_NAME(mocker, modal_dialog):
    assert modal_dialog.button_animation
    modal_dialog.button_animation.start = mocker.MagicMock()
    modal_dialog.button_animation.stop = mocker.MagicMock()
    modal_dialog.continue_button = mocker.MagicMock()
    # Check the animation frame is updated as expected.
    modal_dialog.animate_activestate()
    assert modal_dialog.continue_button.setIcon.call_count == 1
    modal_dialog.continue_button.reset_mock()
    # Check starting the animated state works as expected.
    modal_dialog.start_animate_activestate()
    modal_dialog.button_animation.start.assert_called_once_with()
    modal_dialog.continue_button.setText.assert_called_once_with("")
    assert modal_dialog.continue_button.setMinimumSize.call_count == 1
    assert modal_dialog.continue_button.setStyleSheet.call_count == 2  # also called once for reset
    modal_dialog.continue_button.reset_mock()
    # Check stopping the animated state works as expected.
    modal_dialog.stop_animate_activestate()
    modal_dialog.button_animation.stop.assert_called_once_with()
    modal_dialog.continue_button.setText.assert_called_once_with("CONTINUE")
    assert modal_dialog.continue_button.setIcon.call_count == 1
    assert modal_dialog.continue_button.setStyleSheet.call_count == 2  # also called once for reset