ShutdownMonitor { @HealthCheckRemoveFromRotation("server shutdown state") public String getShutdownState() { if (isShuttingDown.get()) { return "Server is shutting down"; } return null; }  @HealthCheckRemoveFromRotation("server shutdown state") String getShutdownState(); @StopTraffic void stopTraffic();  }
@Test public void testInitialState() { ShutdownMonitor shutdownMonitor = new ShutdownMonitor(); assertNull(shutdownMonitor.getShutdownState()); }