@Test
@SuppressWarnings("all")
public void getMobileAppCategoryConstantExceptionTest() throws Exception {

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockMobileAppCategoryConstantService.addException(exception);
  try {
    MobileAppCategoryConstantName resourceName =
        MobileAppCategoryConstantName.of("[MOBILE_APP_CATEGORY_CONSTANT]");
    client.getMobileAppCategoryConstant(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}