CliMain { private void backfillShow() throws ExecutionException, InterruptedException { final String id = namespace.getString(parser.backfillShowId.getDest()); final boolean noTruncate = namespace.getBoolean(parser.backfillShowNoTruncate.getDest()); final BackfillPayload backfillPayload = styxClient.backfill(id, true).toCompletableFuture().get(); cliOutput.printBackfillPayload(backfillPayload, noTruncate); } private  CliMain(
      StyxCliParser parser,
      Namespace namespace,
      String apiHost,
      CliOutput cliOutput,
      CliContext cliContext,
      boolean debug); static void main(String... args);  }
@Test public void testBackfillShow() { 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(); final BackfillPayload backfillPayload = BackfillPayload.create(backfill, Optional.empty()); when(client.backfill(backfillId, true)) .thenReturn(CompletableFuture.completedFuture(backfillPayload)); CliMain.run(cliContext, "backfill", "show", backfillId, "--no-trunc"); verify(client).backfill(backfillId, true); verify(cliOutput).printBackfillPayload(backfillPayload, true); }