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

  com.google.ads.googleads.v5.services.MobileAppCategoryConstantName resourceName2 =
      com.google.ads.googleads.v5.services.MobileAppCategoryConstantName.of(
          "[MOBILE_APP_CATEGORY_CONSTANT]");
  int id = 3355;
  com.google.ads.googleads.v5.services.MobileAppCategoryConstantName name =
      com.google.ads.googleads.v5.services.MobileAppCategoryConstantName.of(
          "[MOBILE_APP_CATEGORY_CONSTANT]");
  MobileAppCategoryConstant expectedResponse =
      MobileAppCategoryConstant.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setName(name.toString())
          .build();
  mockMobileAppCategoryConstantService.addResponse(expectedResponse);
  MobileAppCategoryConstantName resourceName =
      MobileAppCategoryConstantName.of("[MOBILE_APP_CATEGORY_CONSTANT]");
  MobileAppCategoryConstant actualResponse = client.getMobileAppCategoryConstant(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockMobileAppCategoryConstantService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetMobileAppCategoryConstantRequest actualRequest =
      (GetMobileAppCategoryConstantRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, MobileAppCategoryConstantName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}