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

  com.google.ads.googleads.v5.services.CampaignCriterionSimulationName resourceName2 =
      com.google.ads.googleads.v5.services.CampaignCriterionSimulationName.of(
          "[CUSTOMER]", "[CAMPAIGN_CRITERION_SIMULATION]");
  long campaignId = 2083788458L;
  long criterionId = 326773895L;
  String startDate = "startDate-1573629589";
  String endDate = "endDate1725067410";
  CampaignCriterionSimulation expectedResponse =
      CampaignCriterionSimulation.newBuilder()
          .setResourceName(resourceName2.toString())
          .setCampaignId(campaignId)
          .setCriterionId(criterionId)
          .setStartDate(startDate)
          .setEndDate(endDate)
          .build();
  mockCampaignCriterionSimulationService.addResponse(expectedResponse);
  CampaignCriterionSimulationName resourceName =
      CampaignCriterionSimulationName.of("[CUSTOMER]", "[CAMPAIGN_CRITERION_SIMULATION]");
  CampaignCriterionSimulation actualResponse =
      client.getCampaignCriterionSimulation(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCampaignCriterionSimulationService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCampaignCriterionSimulationRequest actualRequest =
      (GetCampaignCriterionSimulationRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, CampaignCriterionSimulationName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}