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

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