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

  String resourceName = "resourceName979421212";
  CreateAccountLinkResponse expectedResponse =
      CreateAccountLinkResponse.newBuilder().setResourceName(resourceName).build();
  mockAccountLinkService.addResponse(expectedResponse);
  String customerId = "customerId-1772061412";
  AccountLink accountLink = AccountLink.newBuilder().build();
  CreateAccountLinkResponse actualResponse = client.createAccountLink(customerId, accountLink);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAccountLinkService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  CreateAccountLinkRequest actualRequest = (CreateAccountLinkRequest) actualRequests.get(0);
  Assert.assertEquals(customerId, actualRequest.getCustomerId());
  Assert.assertEquals(accountLink, actualRequest.getAccountLink());
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}