def METHOD_NAME(cls, settings=None, config=None):
    """Instantiate the application and setup requests to use the api
    prefix.
    :param dict settings: extra settings values
    :param pyramid.config.Configurator config: already initialized config
    :returns: webtest application instance
    """
    settings = cls.get_app_settings(extras=settings)
    main = cls.entry_point
    wsgi_app = main({}, config=config, **settings)
    app = webtest.TestApp(wsgi_app)
    app.RequestClass = get_request_class(cls.api_prefix)
    return app