@Test
@SuppressWarnings("all")
public void getCampaignSharedSetTest() {

  com.google.ads.googleads.v5.services.CampaignSharedSetName resourceName2 =
      com.google.ads.googleads.v5.services.CampaignSharedSetName.of(
          "[CUSTOMER]", "[CAMPAIGN_SHARED_SET]");
  CampaignName campaign = CampaignName.of("[CUSTOMER]", "[CAMPAIGN]");
  SharedSetName sharedSet = SharedSetName.of("[CUSTOMER]", "[SHARED_SET]");
  CampaignSharedSet expectedResponse =
      CampaignSharedSet.newBuilder()
          .setResourceName(resourceName2.toString())
          .setCampaign(campaign.toString())
          .setSharedSet(sharedSet.toString())
          .build();
  mockCampaignSharedSetService.addResponse(expectedResponse);
  CampaignSharedSetName resourceName =
      CampaignSharedSetName.of("[CUSTOMER]", "[CAMPAIGN_SHARED_SET]");
  CampaignSharedSet actualResponse = client.getCampaignSharedSet(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCampaignSharedSetService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCampaignSharedSetRequest actualRequest = (GetCampaignSharedSetRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, CampaignSharedSetName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}