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

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