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

  com.google.ads.googleads.v5.services.MediaFileName resourceName2 =
      com.google.ads.googleads.v5.services.MediaFileName.of("[CUSTOMER]", "[MEDIA_FILE]");
  long id = 3355L;
  String sourceUrl = "sourceUrl-1111107765";
  com.google.ads.googleads.v5.services.MediaFileName name =
      com.google.ads.googleads.v5.services.MediaFileName.of("[CUSTOMER]", "[MEDIA_FILE]");
  long fileSize = 1316310812L;
  MediaFile expectedResponse =
      MediaFile.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setSourceUrl(sourceUrl)
          .setName(name.toString())
          .setFileSize(fileSize)
          .build();
  mockMediaFileService.addResponse(expectedResponse);
  MediaFileName resourceName = MediaFileName.of("[CUSTOMER]", "[MEDIA_FILE]");
  MediaFile actualResponse = client.getMediaFile(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockMediaFileService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetMediaFileRequest actualRequest = (GetMediaFileRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, MediaFileName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}