def METHOD_NAME(authorizer, token_data, on_refresh):
    """
    Calls get_new_access token, confirms that the mock _get_token_data
    is used and that the mock on_refresh function is called.
    """
    # take note of original access_token_hash
    original_hash = authorizer._access_token_hash
    # get new_access_token
    authorizer._get_new_access_token()
    # confirm side effects
    assert authorizer.access_token == token_data["access_token"]
    assert authorizer.expires_at == token_data["expires_at_seconds"]
    assert authorizer._access_token_hash != original_hash
    on_refresh.assert_called_once()