async def METHOD_NAME(self, **kwargs):
    formrecognizer_test_endpoint = kwargs.pop("formrecognizer_test_endpoint")
    formrecognizer_test_api_key = kwargs.pop("formrecognizer_test_api_key")
    client = DocumentModelAdministrationClient(formrecognizer_test_endpoint, AzureKeyCredential(formrecognizer_test_api_key))
    mock_handler = MockHandler()
    logger = logging.getLogger("azure")
    logger.addHandler(mock_handler)
    logger.setLevel(logging.INFO)
    async with client:
        result = await client.get_resource_details()
    for message in mock_handler.messages:
        if message.levelname == "INFO":
            # not able to use json.loads here. At INFO level only API key should be REDACTED
            if message.message.find("Ocp-Apim-Subscription-Key") != -1:
                assert message.message.find("REDACTED") != -1
            else:
                assert message.message.find("REDACTED") == -1