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

  com.google.ads.googleads.v5.services.AccountLinkName resourceName2 =
      com.google.ads.googleads.v5.services.AccountLinkName.of("[CUSTOMER]", "[ACCOUNT_LINK]");
  AccountLink expectedResponse =
      AccountLink.newBuilder().setResourceName(resourceName2.toString()).build();
  mockAccountLinkService.addResponse(expectedResponse);
  AccountLinkName resourceName = AccountLinkName.of("[CUSTOMER]", "[ACCOUNT_LINK]");
  AccountLink actualResponse = client.getAccountLink(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAccountLinkService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetAccountLinkRequest actualRequest = (GetAccountLinkRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, AccountLinkName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}