UserUpdateJob extends FixedHourScheduledJob { @Override public String getJobIdentifier() { return "USER-UPDATER"; } @Autowired  UserUpdateJob(UserUpdater userUpdater, LdapConfigurationProperties properties, Clock clock); @Override void execute(LocalDateTime lastExecuteTime); @Override void execute(); @Override String getJobIdentifier();  }
@Test public void getJobIdentifierReturnsExpectedIdentifier() { var expectedIdentifier = "USER-UPDATER"; var actualIdentifier = userUpdateJob.getJobIdentifier(); assertThat(actualIdentifier).isEqualTo(expectedIdentifier); }