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

  com.google.ads.googleads.v5.services.RemarketingActionName resourceName2 =
      com.google.ads.googleads.v5.services.RemarketingActionName.of(
          "[CUSTOMER]", "[REMARKETING_ACTION]");
  long id = 3355L;
  com.google.ads.googleads.v5.services.RemarketingActionName name =
      com.google.ads.googleads.v5.services.RemarketingActionName.of(
          "[CUSTOMER]", "[REMARKETING_ACTION]");
  RemarketingAction expectedResponse =
      RemarketingAction.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setName(name.toString())
          .build();
  mockRemarketingActionService.addResponse(expectedResponse);
  RemarketingActionName resourceName =
      RemarketingActionName.of("[CUSTOMER]", "[REMARKETING_ACTION]");
  RemarketingAction actualResponse = client.getRemarketingAction(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockRemarketingActionService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetRemarketingActionRequest actualRequest = (GetRemarketingActionRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, RemarketingActionName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}