PushGatewayPeriodical extends Periodical { @Override public boolean stopOnGracefulShutdown() { return true; } @Inject  PushGatewayPeriodical(MetricsPrometheusReporterConfiguration configuration,
                                 CollectorRegistry collectorRegistry,
                                 PushGateway pushGateway); @Override void doRun(); @Override boolean runsForever(); @Override boolean stopOnGracefulShutdown(); @Override boolean masterOnly(); @Override boolean startOnThisNode(); @Override boolean isDaemon(); @Override int getInitialDelaySeconds(); @Override int getPeriodSeconds();  }
@Test public void stopOnGracefulShutdownIsTrue() throws Exception { assertTrue(periodical.stopOnGracefulShutdown()); }