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

  com.google.ads.googleads.v5.services.CampaignDraftName resourceName2 =
      com.google.ads.googleads.v5.services.CampaignDraftName.of(
          "[CUSTOMER]", "[CAMPAIGN_DRAFT]");
  CampaignDraft expectedResponse =
      CampaignDraft.newBuilder().setResourceName(resourceName2.toString()).build();
  mockCampaignDraftService.addResponse(expectedResponse);
  CampaignDraftName resourceName = CampaignDraftName.of("[CUSTOMER]", "[CAMPAIGN_DRAFT]");
  CampaignDraft actualResponse = client.getCampaignDraft(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCampaignDraftService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCampaignDraftRequest actualRequest = (GetCampaignDraftRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, CampaignDraftName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}