WorkflowLifecycle implements SmartLifecycle { @Override public boolean isAutoStartup() { return autoStart; } @Inject  WorkflowLifecycle(WorkflowDispatcher dispatcher, @NFlow ThreadFactory nflowThreadFactory, Environment env); @Override int getPhase(); @Override boolean isAutoStartup(); @Override void start(); void pause(); void resume(); boolean isPaused(); @Override boolean isRunning(); @Override void stop(); @Override void stop(Runnable callback);  }
@Test public void isAutostartSet() { assertThat(lifecycle.isAutoStartup(), is(true)); }