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

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