@Test
public void testBackfillEdit() {

  final String backfillId = "backfill-2";
  final Backfill backfill = Backfill.newBuilder()
      .id(backfillId)
      .start(Instant.parse("2017-01-01T00:00:00Z"))
      .end(Instant.parse("2017-01-30T00:00:00Z"))
      .workflowId(WorkflowId.create("quux", backfillId))
      .concurrency(1)
      .description("Description")
      .nextTrigger(Instant.parse("2017-01-01T00:00:00Z"))
      .schedule(Schedule.DAYS)
      .created(currentTime)
      .lastModified(currentTime)
      .build();
  when(client.backfillEditConcurrency(backfillId, 1))
      .thenReturn(CompletableFuture.completedFuture(backfill));
  CliMain.run(cliContext, "backfill", "edit", backfillId, "--concurrency", "1");
  verify(client).backfillEditConcurrency(backfillId, 1);
  verify(cliOutput).printBackfill(backfill, true);
}