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

  com.google.ads.googleads.v5.services.AdGroupCriterionSimulationName resourceName2 =
      com.google.ads.googleads.v5.services.AdGroupCriterionSimulationName.of(
          "[CUSTOMER]", "[AD_GROUP_CRITERION_SIMULATION]");
  long adGroupId = 85224585L;
  long criterionId = 326773895L;
  String startDate = "startDate-1573629589";
  String endDate = "endDate1725067410";
  AdGroupCriterionSimulation expectedResponse =
      AdGroupCriterionSimulation.newBuilder()
          .setResourceName(resourceName2.toString())
          .setAdGroupId(adGroupId)
          .setCriterionId(criterionId)
          .setStartDate(startDate)
          .setEndDate(endDate)
          .build();
  mockAdGroupCriterionSimulationService.addResponse(expectedResponse);
  AdGroupCriterionSimulationName resourceName =
      AdGroupCriterionSimulationName.of("[CUSTOMER]", "[AD_GROUP_CRITERION_SIMULATION]");
  AdGroupCriterionSimulation actualResponse = client.getAdGroupCriterionSimulation(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAdGroupCriterionSimulationService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetAdGroupCriterionSimulationRequest actualRequest =
      (GetAdGroupCriterionSimulationRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, AdGroupCriterionSimulationName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}