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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockMobileDeviceConstantService.addException(exception);
  try {
    MobileDeviceConstantName resourceName =
        MobileDeviceConstantName.of("[MOBILE_DEVICE_CONSTANT]");
    client.getMobileDeviceConstant(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}