def METHOD_NAME(monkeypatch, mocker, app):
    """
    Given an handler for the /get-identity endpoint
      When authentication is enabled
      When identity token is missing some user attributes
        Then it should fallback to the attributes contained in the access token
    """
    monkeypatch.setattr('api.PclusterApiHandler.USER_ROLES_CLAIM', 'user_roles_claim')
    accessTokenDecoded = {
      'user_roles_claim': ['access-token-group'],
      'username': 'access-token-username',
      'email': 'access-token-email'
    }
    identityTokenDecoded = {
      'email': 'id-token-email'
    }
    with app.test_request_context(headers={'Cookie': 'accessToken=access-token; idToken=identity-token'}):
      mocker.patch('api.PclusterApiHandler.jwt_decode', side_effect=[accessTokenDecoded, identityTokenDecoded])
      assert get_identity() == {
          'attributes': {'email': 'id-token-email'},
          'user_roles': ['access-token-group'],
          'username': 'access-token-username'
      }