source: class UserListServiceClientTest {
  
    private static MockAccountBudgetProposalService mockAccountBudgetProposalService;
    private static MockAccountBudgetService mockAccountBudgetService;
    private static MockAccountLinkService mockAccountLinkService;
    private static MockAdGroupAdAssetViewService mockAdGroupAdAssetViewService;
    private static MockAdGroupAdLabelService mockAdGroupAdLabelService;
    private static MockAdGroupAdService mockAdGroupAdService;
    private static MockAdGroupAudienceViewService mockAdGroupAudienceViewService;
    private static MockAdGroupBidModifierService mockAdGroupBidModifierService;
    private static MockAdGroupCriterionLabelService mockAdGroupCriterionLabelService;
    private static MockAdGroupCriterionService mockAdGroupCriterionService;
    private static MockAdGroupCriterionSimulationService mockAdGroupCriterionSimulationService;
    private static MockAdGroupExtensionSettingService mockAdGroupExtensionSettingService;
    private static MockAdGroupFeedService mockAdGroupFeedService;
    private static MockAdGroupLabelService mockAdGroupLabelService;
    private static MockAdGroupService mockAdGroupService;
    private static MockAdGroupSimulationService mockAdGroupSimulationService;
    private static MockAdParameterService mockAdParameterService;
    private static MockAdScheduleViewService mockAdScheduleViewService;
    private static MockAdService mockAdService;
    private static MockAgeRangeViewService mockAgeRangeViewService;
    private static MockAssetService mockAssetService;
    private static MockBiddingStrategyService mockBiddingStrategyService;
    private static MockCampaignAssetService mockCampaignAssetService;
    private static MockCampaignBidModifierService mockCampaignBidModifierService;
    private static MockCampaignBudgetService mockCampaignBudgetService;
    private static MockCampaignCriterionService mockCampaignCriterionService;
    private static MockCampaignDraftService mockCampaignDraftService;
    private static MockCampaignExperimentService mockCampaignExperimentService;
    private static MockCampaignExtensionSettingService mockCampaignExtensionSettingService;
    private static MockCampaignFeedService mockCampaignFeedService;
    private static MockCampaignLabelService mockCampaignLabelService;
    private static MockCampaignService mockCampaignService;
    private static MockCampaignSharedSetService mockCampaignSharedSetService;
    private static MockConversionActionService mockConversionActionService;
    private static MockCustomerExtensionSettingService mockCustomerExtensionSettingService;
    private static MockCustomerFeedService mockCustomerFeedService;
    private static MockCustomerLabelService mockCustomerLabelService;
    private static MockCustomerNegativeCriterionService mockCustomerNegativeCriterionService;
    private static MockCustomerService mockCustomerService;
    private static MockExtensionFeedItemService mockExtensionFeedItemService;
    private static MockFeedItemService mockFeedItemService;
    private static MockFeedItemTargetService mockFeedItemTargetService;
    private static MockFeedMappingService mockFeedMappingService;
    private static MockFeedService mockFeedService;
    private static MockKeywordPlanAdGroupKeywordService mockKeywordPlanAdGroupKeywordService;
    private static MockKeywordPlanAdGroupService mockKeywordPlanAdGroupService;
    private static MockKeywordPlanCampaignKeywordService mockKeywordPlanCampaignKeywordService;
    private static MockKeywordPlanCampaignService mockKeywordPlanCampaignService;
    private static MockKeywordPlanService mockKeywordPlanService;
    private static MockLabelService mockLabelService;
    private static MockMediaFileService mockMediaFileService;
    private static MockRemarketingActionService mockRemarketingActionService;
    private static MockSharedCriterionService mockSharedCriterionService;
    private static MockSharedSetService mockSharedSetService;
    private static MockUserListService mockUserListService;
    private static MockGoogleAdsService mockGoogleAdsService;
    private static MockBatchJobService mockBatchJobService;
    private static MockBillingSetupService mockBillingSetupService;
    private static MockCampaignAudienceViewService mockCampaignAudienceViewService;
    private static MockCampaignCriterionSimulationService mockCampaignCriterionSimulationService;
    private static MockCarrierConstantService mockCarrierConstantService;
    private static MockChangeStatusService mockChangeStatusService;
    private static MockClickViewService mockClickViewService;
    private static MockConversionAdjustmentUploadService mockConversionAdjustmentUploadService;
    private static MockConversionUploadService mockConversionUploadService;
    private static MockCurrencyConstantService mockCurrencyConstantService;
    private static MockCustomInterestService mockCustomInterestService;
    private static MockCustomerClientLinkService mockCustomerClientLinkService;
    private static MockCustomerClientService mockCustomerClientService;
    private static MockCustomerManagerLinkService mockCustomerManagerLinkService;
    private static MockDetailPlacementViewService mockDetailPlacementViewService;
    private static MockDisplayKeywordViewService mockDisplayKeywordViewService;
    private static MockDistanceViewService mockDistanceViewService;
    private static MockDomainCategoryService mockDomainCategoryService;
    private static MockDynamicSearchAdsSearchTermViewService mockDynamicSearchAdsSearchTermViewService;
    private static MockExpandedLandingPageViewService mockExpandedLandingPageViewService;
    private static MockFeedPlaceholderViewService mockFeedPlaceholderViewService;
    private static MockGenderViewService mockGenderViewService;
    private static MockGeoTargetConstantService mockGeoTargetConstantService;
    private static MockGeographicViewService mockGeographicViewService;
    private static MockGoogleAdsFieldService mockGoogleAdsFieldService;
    private static MockGroupPlacementViewService mockGroupPlacementViewService;
    private static MockHotelGroupViewService mockHotelGroupViewService;
    private static MockHotelPerformanceViewService mockHotelPerformanceViewService;
    private static MockIncomeRangeViewService mockIncomeRangeViewService;
    private static MockInvoiceService mockInvoiceService;
    private static MockKeywordPlanIdeaService mockKeywordPlanIdeaService;
    private static MockKeywordViewService mockKeywordViewService;
    private static MockLandingPageViewService mockLandingPageViewService;
    private static MockLanguageConstantService mockLanguageConstantService;
    private static MockLocationViewService mockLocationViewService;
    private static MockManagedPlacementViewService mockManagedPlacementViewService;
    private static MockMerchantCenterLinkService mockMerchantCenterLinkService;
    private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService;
    private static MockMobileDeviceConstantService mockMobileDeviceConstantService;
    private static MockOfflineUserDataJobService mockOfflineUserDataJobService;
    private static MockOperatingSystemVersionConstantService mockOperatingSystemVersionConstantService;
    private static MockPaidOrganicSearchTermViewService mockPaidOrganicSearchTermViewService;
    private static MockParentalStatusViewService mockParentalStatusViewService;
    private static MockPaymentsAccountService mockPaymentsAccountService;
    private static MockProductBiddingCategoryConstantService mockProductBiddingCategoryConstantService;
    private static MockProductGroupViewService mockProductGroupViewService;
    private static MockReachPlanService mockReachPlanService;
    private static MockRecommendationService mockRecommendationService;
    private static MockSearchTermViewService mockSearchTermViewService;
    private static MockShoppingPerformanceViewService mockShoppingPerformanceViewService;
    private static MockThirdPartyAppAnalyticsLinkService mockThirdPartyAppAnalyticsLinkService;
    private static MockTopicConstantService mockTopicConstantService;
    private static MockTopicViewService mockTopicViewService;
    private static MockUserDataService mockUserDataService;
    private static MockUserInterestService mockUserInterestService;
    private static MockUserLocationViewService mockUserLocationViewService;
    private static MockVideoService mockVideoService;
    private static MockServiceHelper serviceHelper;
    private UserListServiceClient client;
    private LocalChannelProvider channelProvider;
  
    @Test
    @SuppressWarnings("all")
    public void getUserListTest() {
  
target:     com.google.ads.googleads.v5.services.UserListName resourceName2 =
          com.google.ads.googleads.v5.services.UserListName.of("[CUSTOMER]", "[USER_LIST]");
      UserList expectedResponse =
          UserList.newBuilder().setResourceName(resourceName2.toString()).build();
      mockUserListService.addResponse(expectedResponse);
  
      UserListName resourceName = UserListName.of("[CUSTOMER]", "[USER_LIST]");
  
      UserList actualResponse = client.getUserList(resourceName);
      Assert.assertEquals(expectedResponse, actualResponse);
  
      List<AbstractMessage> actualRequests = mockUserListService.getRequests();
      Assert.assertEquals(1, actualRequests.size());
      GetUserListRequest actualRequest = (GetUserListRequest) actualRequests.get(0);
  
      Assert.assertEquals(resourceName, UserListName.parse(actualRequest.getResourceName()));
      Assert.assertTrue(
          channelProvider.isHeaderSent(
              ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
              GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    }
  
  }