@Test
public void shouldUpdateJobLastUpdateTime() {

    //Given
    final JobInfo foo = jobInfo("http://localhost/foo", "T_FOO");
    repo.createOrUpdate(foo);
    final OffsetDateTime myTestTime = OffsetDateTime.of(1979, 2, 5, 1, 2, 3, 4, ZoneOffset.UTC);
    //When
    repo.setLastUpdate(foo.getJobId(), myTestTime);
    final Optional<JobInfo> jobInfo = repo.findOne(foo.getJobId());
    //Then
    assertThat(jobInfo, OptionalMatchers.isPresent());
    assertThat(Date.from(jobInfo.get().getLastUpdated().toInstant()), is(Date.from(myTestTime.toInstant())));
}