@Test
@SuppressWarnings("all")
public void listInvoicesTest() {

  ListInvoicesResponse expectedResponse = ListInvoicesResponse.newBuilder().build();
  mockInvoiceService.addResponse(expectedResponse);
  String customerId = "customerId-1772061412";
  String billingSetup = "billingSetup-1181632583";
  String issueYear = "issueYear1443510243";
  MonthOfYearEnum.MonthOfYear issueMonth = MonthOfYearEnum.MonthOfYear.UNSPECIFIED;
  ListInvoicesResponse actualResponse =
      client.listInvoices(customerId, billingSetup, issueYear, issueMonth);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockInvoiceService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  ListInvoicesRequest actualRequest = (ListInvoicesRequest) actualRequests.get(0);
  Assert.assertEquals(customerId, actualRequest.getCustomerId());
  Assert.assertEquals(billingSetup, actualRequest.getBillingSetup());
  Assert.assertEquals(issueYear, actualRequest.getIssueYear());
  Assert.assertEquals(issueMonth, actualRequest.getIssueMonth());
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}