def METHOD_NAME(self, reset_and_start_fledge, fledge_url, wait_time, retries):
    # reset_and_start_fledge fixture needed to get default settings back
    conn = http.client.HTTPConnection(fledge_url)
    payload = {"allowPing": "false", "authentication": "mandatory"}
    conn.request("PUT", '/fledge/category/rest_api', body=json.dumps(payload))
    r = conn.getresponse()
    assert 200 == r.status
    r = r.read().decode()
    jdoc = json.loads(r)
    assert len(jdoc), "No data found"
    ping_status = self.do_restart(fledge_url, wait_time, retries*2)        
    assert 401 == ping_status.status
    assert 'Unauthorized' == ping_status.reason