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

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