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

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