@Test
public void testLoggingProgressAfterSixtySeconds() {

  listener.progressChanged(UploadState.MEDIA_IN_PROGRESS, 10485760L, 60001L);
  assertThat(getTestCapturedLog())
      .isEqualTo(
          "FINE: Uploading:"
              + " NAME Average Rate: 0.167 MiB/s, Current Rate: 0.167 MiB/s, Total: 10.000 MiB");
  listener.progressChanged(UploadState.MEDIA_IN_PROGRESS, 104857600L, 120002L);
  assertThat(getTestCapturedLog())
      .isEqualTo(
          "FINE: Uploading:"
              + " NAME Average Rate: 0.833 MiB/s, Current Rate: 1.500 MiB/s, Total: 100.000 MiB");
}