code: def test_add_resource_forward_resource_class_parameters(
      self, app, client
  ):
      api = restplus.Api(app)
  
      class Foo(restplus.Resource):
          def __init__(self, api, *args, **kwargs):
              self.one = args[0]
              self.two = kwargs["secret_state"]
              super(Foo, self).__init__(api, *args, **kwargs)
  
          def get(self):
              return "{0} {1}".format(self.one, self.two)
  
      api.add_resource(
          Foo,
          "/foo",
          resource_class_args=("wonderful",),
          resource_class_kwargs={"secret_state": "slurm"},
      )
  
      foo = client.get("/foo")
      assert foo.data == b'"wonderful slurm"\n'
  
imports: from __future__ import unicode_literals
  import flask
  import pytest
  import six
  from json import dumps, JSONEncoder
  from flask import Blueprint, redirect, views
  from werkzeug.exceptions import HTTPException, Unauthorized, BadRequest
  import flask_restplus
label_desc: Use image node_id 22 for calling the APITest obj's underlying member method code with example usage: obj.test_add_resource_forward_resource_class_parameters(app, client) and returns: str