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

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