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

  com.google.ads.googleads.v5.services.MobileDeviceConstantName resourceName2 =
      com.google.ads.googleads.v5.services.MobileDeviceConstantName.of(
          "[MOBILE_DEVICE_CONSTANT]");
  long id = 3355L;
  com.google.ads.googleads.v5.services.MobileDeviceConstantName name =
      com.google.ads.googleads.v5.services.MobileDeviceConstantName.of(
          "[MOBILE_DEVICE_CONSTANT]");
  String manufacturerName = "manufacturerName-1949119943";
  String operatingSystemName = "operatingSystemName-1624170339";
  MobileDeviceConstant expectedResponse =
      MobileDeviceConstant.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setName(name.toString())
          .setManufacturerName(manufacturerName)
          .setOperatingSystemName(operatingSystemName)
          .build();
  mockMobileDeviceConstantService.addResponse(expectedResponse);
  MobileDeviceConstantName resourceName = MobileDeviceConstantName.of("[MOBILE_DEVICE_CONSTANT]");
  MobileDeviceConstant actualResponse = client.getMobileDeviceConstant(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockMobileDeviceConstantService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetMobileDeviceConstantRequest actualRequest =
      (GetMobileDeviceConstantRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, MobileDeviceConstantName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}