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

  com.google.ads.googleads.v5.services.OperatingSystemVersionConstantName resourceName2 =
      com.google.ads.googleads.v5.services.OperatingSystemVersionConstantName.of(
          "[OPERATING_SYSTEM_VERSION_CONSTANT]");
  long id = 3355L;
  com.google.ads.googleads.v5.services.OperatingSystemVersionConstantName name =
      com.google.ads.googleads.v5.services.OperatingSystemVersionConstantName.of(
          "[OPERATING_SYSTEM_VERSION_CONSTANT]");
  int osMajorVersion = 1346408137;
  int osMinorVersion = 1088382771;
  OperatingSystemVersionConstant expectedResponse =
      OperatingSystemVersionConstant.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setName(name.toString())
          .setOsMajorVersion(osMajorVersion)
          .setOsMinorVersion(osMinorVersion)
          .build();
  mockOperatingSystemVersionConstantService.addResponse(expectedResponse);
  OperatingSystemVersionConstantName resourceName =
      OperatingSystemVersionConstantName.of("[OPERATING_SYSTEM_VERSION_CONSTANT]");
  OperatingSystemVersionConstant actualResponse =
      client.getOperatingSystemVersionConstant(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockOperatingSystemVersionConstantService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetOperatingSystemVersionConstantRequest actualRequest =
      (GetOperatingSystemVersionConstantRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, OperatingSystemVersionConstantName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}