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

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