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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockCurrencyConstantService.addException(exception);
  try {
    CurrencyConstantName resourceName = CurrencyConstantName.of("[CURRENCY_CONSTANT]");
    client.getCurrencyConstant(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}