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

  com.google.ads.googleads.v5.services.MerchantCenterLinkName resourceName2 =
      com.google.ads.googleads.v5.services.MerchantCenterLinkName.of(
          "[CUSTOMER]", "[MERCHANT_CENTER_LINK]");
  long id = 3355L;
  String merchantCenterAccountName = "merchantCenterAccountName-835145712";
  MerchantCenterLink expectedResponse =
      MerchantCenterLink.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setMerchantCenterAccountName(merchantCenterAccountName)
          .build();
  mockMerchantCenterLinkService.addResponse(expectedResponse);
  MerchantCenterLinkName resourceName =
      MerchantCenterLinkName.of("[CUSTOMER]", "[MERCHANT_CENTER_LINK]");
  MerchantCenterLink actualResponse = client.getMerchantCenterLink(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockMerchantCenterLinkService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetMerchantCenterLinkRequest actualRequest =
      (GetMerchantCenterLinkRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, MerchantCenterLinkName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}