@Test
public void shouldAcceptIfNoJobRan() {

    // given
    when(jobRepository.findLatestBy(anyString(), eq(1+1))).thenReturn(emptyList());
    // when
    final StatusDetail statusDetail = errorOnLastJobFailed.statusDetail(jobDefinition);
    // then
    assertThat(statusDetail.getStatus(), is(Status.OK));
}