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

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