ApplicationsAndBookmarkCleaner extends FixedHourScheduledJob { @Override public String getJobIdentifier() { return "APPLICATION-AND-BOOKMARK-CLEANER"; } @Autowired  ApplicationsAndBookmarkCleaner(UserService userService,
                                          BookmarkService bookmarkService,
                                          AccessIntervalRepository accessIntervalRepo,
                                          Clock clock); @Override void execute(LocalDateTime lastExecuteTime); @Override void execute(); @Override String getJobIdentifier();  }
@Test public void getJobIdentifierReturnsExpectedIdentifier() { var expectedIdentifier = "APPLICATION-AND-BOOKMARK-CLEANER"; var actualIdentifier = cleaner.getJobIdentifier(); assertThat(actualIdentifier).isEqualTo(expectedIdentifier); }