@Test
public void shouldFindRunningWithoutUpdateSince() {

    // given
    final JobInfo foo = jobInfo("http://localhost/foo", "T_FOO");
    final JobInfo bar = someRunningJobInfo("http://localhost/bar", "T_BAR", now());
    final JobInfo foobar = someRunningJobInfo("http://localhost/foobar", "T_BAR", now().plusSeconds(3));
    repo.createOrUpdate(foo);
    repo.createOrUpdate(bar);
    repo.createOrUpdate(foobar);
    // when
    final List<JobInfo> infos = repo.findRunningWithoutUpdateSince(now().plusSeconds(2));
    // then
    assertThat(infos, hasSize(1));
    assertThat(infos.get(0), is(bar));
}