public async stt::Task GetMetadataImportResourceNamesAsync()
        {
            moq::Mock <DataprocMetastore.DataprocMetastoreClient> mockGrpcClient = new moq::Mock <DataprocMetastore.DataprocMetastoreClient>(moq::MockBehavior.Strict);

            mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock <lro::Operations.OperationsClient>().Object);
            GetMetadataImportRequest request = new GetMetadataImportRequest
            {
                MetadataImportName = MetadataImportName.FromProjectLocationServiceMetadataImport("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]"),
            };
            MetadataImport expectedResponse = new MetadataImport
            {
                MetadataImportName = MetadataImportName.FromProjectLocationServiceMetadataImport("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]"),
                Description        = "description2cf9da67",
                CreateTime         = new wkt::Timestamp(),
                UpdateTime         = new wkt::Timestamp(),
                State        = MetadataImport.Types.State.Updating,
                DatabaseDump = new MetadataImport.Types.DatabaseDump(),
                EndTime      = new wkt::Timestamp(),
            };

            mockGrpcClient.Setup(x => x.GetMetadataImportAsync(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall <MetadataImport>(stt::Task.FromResult(expectedResponse), null, null, null, null));
            DataprocMetastoreClient client = new DataprocMetastoreClientImpl(mockGrpcClient.Object, null);
            MetadataImport          responseCallSettings = await client.GetMetadataImportAsync(request.MetadataImportName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));

            xunit::Assert.Same(expectedResponse, responseCallSettings);
            MetadataImport responseCancellationToken = await client.GetMetadataImportAsync(request.MetadataImportName, st::CancellationToken.None);

            xunit::Assert.Same(expectedResponse, responseCancellationToken);
            mockGrpcClient.VerifyAll();
        }
        public void GetMetadataImportResourceNames()
        {
            moq::Mock <DataprocMetastore.DataprocMetastoreClient> mockGrpcClient = new moq::Mock <DataprocMetastore.DataprocMetastoreClient>(moq::MockBehavior.Strict);

            mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock <lro::Operations.OperationsClient>().Object);
            GetMetadataImportRequest request = new GetMetadataImportRequest
            {
                MetadataImportName = MetadataImportName.FromProjectLocationServiceMetadataImport("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]"),
            };
            MetadataImport expectedResponse = new MetadataImport
            {
                MetadataImportName = MetadataImportName.FromProjectLocationServiceMetadataImport("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]"),
                Description        = "description2cf9da67",
                CreateTime         = new wkt::Timestamp(),
                UpdateTime         = new wkt::Timestamp(),
                State        = MetadataImport.Types.State.Updating,
                DatabaseDump = new MetadataImport.Types.DatabaseDump(),
                EndTime      = new wkt::Timestamp(),
            };

            mockGrpcClient.Setup(x => x.GetMetadataImport(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            DataprocMetastoreClient client   = new DataprocMetastoreClientImpl(mockGrpcClient.Object, null);
            MetadataImport          response = client.GetMetadataImport(request.MetadataImportName);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }