@Test
public void testRunningRepairDuration() {

  RepairRunStatus repairStatus
      = new RepairRunStatus(
          UUID.randomUUID(), // runId
          "test", // clusterName
          "test", // keyspaceName
          Collections.EMPTY_LIST, // tables
          10, // segmentsRepaired
          100, // totalSegments
          RepairRun.RunState.RUNNING, // state
          new DateTime().now().minusMinutes(1), // startTime
          null, // endTime
          "test", // cause
          "alex", // owner
          "", // lastEvent
          new DateTime(2018, 4, 11, 15, 00, 00, DateTimeZone.UTC), // creationTime
          null, // pauseTime
          0.9, // intensity
          false, // incremental
          RepairParallelism.PARALLEL, // repairParellelism
          Collections.EMPTY_LIST, // nodes
          Collections.EMPTY_LIST, // datacenters
          Collections.EMPTY_LIST, // blacklist
          1,
          UUID.randomUUID()); // repair thread count
  assertEquals("1 minute 0 seconds", repairStatus.getDuration());
}