async def METHOD_NAME(self):
    wallet_record = WalletRecord(wallet_id="test", settings={})
    multitenant_sub_wallet_name = "custom_wallet_name"
    self.profile.context.settings = self.profile.settings.extend(
        {"multitenant.wallet_name": multitenant_sub_wallet_name}
    )
    with async_mock.patch(
        "aries_cloudagent.multitenant.askar_profile_manager.wallet_config"
    ) as wallet_config:
        with async_mock.patch(
            "aries_cloudagent.multitenant.askar_profile_manager.AskarProfile"
        ) as AskarProfile:
            sub_wallet_profile = AskarProfile(None, None)
            sub_wallet_profile.context.copy.return_value = InjectionContext()
            def side_effect(context, provision):
                return sub_wallet_profile, None
            wallet_config.side_effect = side_effect
            await self.manager.get_wallet_profile(
                self.profile.context, wallet_record
            )
            wallet_config.assert_called_once()
            assert (
                wallet_config.call_args[0][0].settings.get("wallet.name")
                == multitenant_sub_wallet_name
            )