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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockCustomerService.addException(exception);
  try {
    CustomerName resourceName = CustomerName.of("[CUSTOMER]");
    client.getCustomer(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}