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

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