PushGatewayPeriodical extends Periodical { @Override public boolean masterOnly() { return false; } @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 masterOnlyIsFalse() throws Exception { assertFalse(periodical.masterOnly()); }