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

  com.google.ads.googleads.v5.services.ChangeStatusName resourceName2 =
      com.google.ads.googleads.v5.services.ChangeStatusName.of("[CUSTOMER]", "[CHANGE_STATUS]");
  CampaignName campaign = CampaignName.of("[CUSTOMER]", "[CAMPAIGN]");
  AdGroupName adGroup = AdGroupName.of("[CUSTOMER]", "[AD_GROUP]");
  ChangeStatus expectedResponse =
      ChangeStatus.newBuilder()
          .setResourceName(resourceName2.toString())
          .setCampaign(campaign.toString())
          .setAdGroup(adGroup.toString())
          .build();
  mockChangeStatusService.addResponse(expectedResponse);
  ChangeStatusName resourceName = ChangeStatusName.of("[CUSTOMER]", "[CHANGE_STATUS]");
  ChangeStatus actualResponse = client.getChangeStatus(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockChangeStatusService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetChangeStatusRequest actualRequest = (GetChangeStatusRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, ChangeStatusName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}