CliMain { private void backfillEdit() throws ExecutionException, InterruptedException { final Integer concurrency = namespace.getInt(parser.backfillEditConcurrency.getDest()); final String id = namespace.getString(parser.backfillEditId.getDest()); if (concurrency != null) { final Backfill backfill = styxClient.backfillEditConcurrency(id, concurrency).toCompletableFuture().get(); cliOutput.printBackfill(backfill, true); } } private  CliMain(
      StyxCliParser parser,
      Namespace namespace,
      String apiHost,
      CliOutput cliOutput,
      CliContext cliContext,
      boolean debug); static void main(String... args);  }
@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); }