@Test
void shouldReturnLabelProviderNameOnOrigin() {

    JenkinsFacade jenkins = mock(JenkinsFacade.class);
    when(jenkins.getDescriptorsFor(Tool.class)).thenReturn(
            DescriptorExtensionList.createDescriptorList((Jenkins)null, Tool.class));
    BuildFolderFacade buildFolder = mock(BuildFolderFacade.class);
    DetailFactory detailFactory = new DetailFactory(jenkins, buildFolder);
    Object details = detailFactory.createTrendDetails("origin." + TOOL_ID.hashCode(), RUN,
            createResult(), ALL_ISSUES, NEW_ISSUES, OUTSTANDING_ISSUES, FIXED_ISSUES, ENCODING, createParent());
    assertThat(details).isInstanceOfSatisfying(IssuesDetail.class,
            d -> assertThat(d.getDisplayName()).isEqualTo("Static Analysis"));
}