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

  ListPaymentsAccountsResponse expectedResponse =
      ListPaymentsAccountsResponse.newBuilder().build();
  mockPaymentsAccountService.addResponse(expectedResponse);
  String customerId = "customerId-1772061412";
  ListPaymentsAccountsResponse actualResponse = client.listPaymentsAccounts(customerId);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockPaymentsAccountService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  ListPaymentsAccountsRequest actualRequest = (ListPaymentsAccountsRequest) actualRequests.get(0);
  Assert.assertEquals(customerId, actualRequest.getCustomerId());
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}