def METHOD_NAME(font_size_preview_widget):
    maximum = 10
    widget = font_size_preview_widget(max_value=maximum)
    assert widget.maximum() == maximum
    assert widget.value() <= maximum
    widget = font_size_preview_widget()
    widget.setMaximum(20)
    assert widget.maximum() == 20
    assert widget._slider.maximum() == 20
    assert widget._slider_max_label.text() == "20"
    widget.setMaximum(5)
    assert widget.maximum() == 5
    assert widget.value() == 5
    assert widget._slider.maximum() == 5
    assert widget._lineedit.text() == "5"
    assert widget._slider_max_label.text() == "5"