protected boolean enableForceDelete(SparkApplication app) {
    long timeoutThreshold =
        app.getSpec()
            .getApplicationTolerations()
            .getApplicationTimeoutConfig()
            .getForceTerminationGracePeriodMillis();
    Instant lastTransitionTime =
        Instant.parse(app.getStatus().getCurrentState().getLastTransitionTime());
    return lastTransitionTime.plusMillis(timeoutThreshold).isBefore(Instant.now());
  }
@Test
  void enableForceDelete() {
    AppCleanUpStep appCleanUpStep = new AppCleanUpStep();
    SparkApplication app = new SparkApplication();
    app.getStatus()
        .getCurrentState()
        .setLastTransitionTime(Instant.now().minusSeconds(5).toString());
    app.getSpec()
        .getApplicationTolerations()
        .getApplicationTimeoutConfig()
        .setForceTerminationGracePeriodMillis(3000L);
    assertTrue(appCleanUpStep.enableForceDelete(app));
  }