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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockCarrierConstantService.addException(exception);
  try {
    CarrierConstantName resourceName = CarrierConstantName.of("[CARRIER_CONSTANT]");
    client.getCarrierConstant(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}