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

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