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

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