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

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