def METHOD_NAME(qtbot, widget, widget_mngr):
    applet = QLabel("Widget")
    prov = applet_provider(applet, "test")
    applet2 = QLabel("Widget2")
    prov2 = applet_provider(applet2, "test2")
    widget_mngr.addApplet(100, prov)
    widget_mngr.addApplet(200, prov2)
    widget.show()
    qtbot.waitExposed(widget)
    assert applet.isVisible()
    assert not applet2.isVisible()
    widget_mngr.focusApplet(200)
    assert not applet.isVisible()
    assert applet2.isVisible()