@Test
@Issue("SECURITY-1373")
void shouldSanitizeName() {

    AnalysisResult analysisResult = createAnalysisResult(EMPTY_ORIGINS, 0, 0,
            Lists.immutable.of("Error 1", "Error 2"), 0);
    Locale.setDefault(Locale.ENGLISH);
    LabelProviderFactoryFacade facade = mock(LabelProviderFactoryFacade.class);
    StaticAnalysisLabelProvider checkStyleLabelProvider = createLabelProvider("checkstyle",
            "<b>CheckStyle</b> <script>execute</script>");
    when(facade.get("checkstyle")).thenReturn(checkStyleLabelProvider);
    Summary summary = new Summary(checkStyleLabelProvider, analysisResult, facade);
    setResetReferenceAction(summary, false);
    String createdHtml = summary.create();
    assertThat(createdHtml).contains("<b>CheckStyle</b>");
    assertThat(createdHtml).doesNotContain("<script>execute</script>");
}