def METHOD_NAME(self, portal_mock):
    request = portal_mock.create_request()
    options = {
        "session_handle_token": "session_token0",
    }
    response = request.call(
        "CreateSession",
        options=options,
    )
    assert response.response == 0
    session = Session.from_response(portal_mock.dbus_con, response)
    # Check the impl portal was called with the right args
    method_calls = portal_mock.mock_interface.GetMethodCalls("CreateSession")
    assert len(method_calls) > 0
    _, args = method_calls[-1]
    assert args[1] == session.handle
    assert args[2] == ""  # appid
    session.close()
    mainloop = GLib.MainLoop()
    GLib.timeout_add(2000, mainloop.quit)
    mainloop.run()
    assert session.closed