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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockOperatingSystemVersionConstantService.addException(exception);
  try {
    OperatingSystemVersionConstantName resourceName =
        OperatingSystemVersionConstantName.of("[OPERATING_SYSTEM_VERSION_CONSTANT]");
    client.getOperatingSystemVersionConstant(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}