FetchAmiJob implements FullstopJob { @PostConstruct public void init() { log.info("{} initalized", getClass().getSimpleName()); } @Autowired  FetchAmiJob(final ViolationSink violationSink,
                       final ClientProvider clientProvider,
                       final AccountIdSupplier allAccountIds,
                       final JobsProperties jobsProperties,
                       final ViolationService violationService,
                       final FetchTaupageYaml fetchTaupageYaml,
                       @Value("${FULLSTOP_TAUPAGE_NAME_PREFIX}") final String taupageNamePrefix,
                       @Value("${FULLSTOP_TAUPAGE_OWNERS}") final String taupageOwners,
                       final JobExceptionHandler jobExceptionHandler,
                       final TaupageExpirationTimeProvider taupageExpirationTimeProvider); @PostConstruct void init(); @Scheduled(fixedRate = 60_000 * 60 * 4, initialDelay = -1) // ((1 min * 60) * 4) = 4 hours rate, 0 min delay void run();  }
@Test public void testInit() { job.init(); }