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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockInvoiceService.addException(exception);
  try {
    String customerId = "customerId-1772061412";
    String billingSetup = "billingSetup-1181632583";
    String issueYear = "issueYear1443510243";
    MonthOfYearEnum.MonthOfYear issueMonth = MonthOfYearEnum.MonthOfYear.UNSPECIFIED;
    client.listInvoices(customerId, billingSetup, issueYear, issueMonth);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}