@Test
public void shouldUseDefaultJobStatusDetailIndicator() {

    // given
    final JobStatusCalculator defaultCalculator = mock(JobStatusCalculator.class);
    when(defaultCalculator.getKey()).thenReturn("warningOnLastJobFailed");
    // when
    testee.jobStatusDetailIndicator(
            someJobDefinitionService(), singletonList(defaultCalculator)).statusDetails();
    // then
    verify(defaultCalculator).statusDetail(any(JobDefinition.class));
}