@Test
public void shouldConstructCompositeStatusDetailIndicator() {

    // given
    final JobStatusCalculator defaultCalculator = mock(JobStatusCalculator.class);
    when(defaultCalculator.getKey()).thenReturn("warningOnLastJobFailed");
    // when
    final StatusDetailIndicator indicator = testee.jobStatusDetailIndicator(
            someJobDefinitionService(),
            singletonList(defaultCalculator)
    );
    // then
    assertThat(indicator, is(instanceOf(CompositeStatusDetailIndicator.class)));
}