def METHOD_NAME(config):
    p = ESRIServiceProvider(config)
    results = p.query()
    assert results['features'][0]['id'] == 1
    assert results['numberReturned'] == 10
    results = p.query(limit=50)
    assert results['numberReturned'] == 50
    results = p.query(offset=10)
    assert results['features'][0]['id'] == 11
    assert results['numberReturned'] == 10
    results = p.query(limit=10)
    assert len(results['features']) == 10
    assert results['numberMatched'] == 406
    results = p.query(limit=10001, resulttype='hits')
    assert results['numberMatched'] == 406