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

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