def METHOD_NAME(self):
    from prowler.providers.gcp.services.apikeys.apikeys_service import Key
    key = Key(
        name="test",
        id="123",
        creation_time="2022-06-05T11:21:41.627509Z",
        restrictions={
            "apiTargets": [
                {"service": "dns.googleapis.com"},
                {"service": "oslogin.googleapis.com"},
                {"service": "cloudapis.googleapis.com"},
            ]
        },
        project_id=GCP_PROJECT_ID,
    )
    apikeys_client = mock.MagicMock
    apikeys_client.project_ids = [GCP_PROJECT_ID]
    apikeys_client.keys = [key]
    apikeys_client.region = "global"
    with mock.patch(
        "prowler.providers.gcp.services.apikeys.apikeys_api_restrictions_configured.apikeys_api_restrictions_configured.apikeys_client",
        new=apikeys_client,
    ):
        from prowler.providers.gcp.services.apikeys.apikeys_api_restrictions_configured.apikeys_api_restrictions_configured import (
            apikeys_api_restrictions_configured,
        )
        check = apikeys_api_restrictions_configured()
        result = check.execute()
        assert len(result) == 1
        assert result[0].status == "FAIL"
        assert search(
            f"API key {key.name} doens't have restrictions configured.",
            result[0].status_extended,
        )
        assert result[0].resource_id == key.id