GracefulShutdownHealthIndicator implements SmartLifecycle, HealthIndicator { @Override public Health health() { return health; } GracefulShutdownHealthIndicator(final GracefulShutdownProperties properties); @Override Health health(); @Override void stop(Runnable callback); @Override void start(); @Override void stop(); @Override boolean isRunning(); @Override int getPhase(); @Override boolean isAutoStartup();  }
@Test public void shouldHealthyOnStartup() throws Exception { GracefulShutdownHealthIndicator gracefulShutdownHealthIndicator; gracefulShutdownHealthIndicator = new GracefulShutdownHealthIndicator(mock(GracefulShutdownProperties.class)); assertThat(gracefulShutdownHealthIndicator.health(), is(up().build())); }