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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockConversionActionService.addException(exception);
  try {
    ConversionActionName resourceName =
        ConversionActionName.of("[CUSTOMER]", "[CONVERSION_ACTION]");
    client.getConversionAction(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}