@Test
void shouldThrowExceptionIfLinkIsNotFound() {

    assertThatExceptionOfType(NoSuchElementException.class)
            .isThrownBy(() ->
                    new DetailFactory().createTrendDetails("broken", RUN, createResult(), ALL_ISSUES, NEW_ISSUES, 
                            OUTSTANDING_ISSUES, FIXED_ISSUES, ENCODING, createParent()));
}