@Test
void shouldContainQualityGateResult() {

    AnalysisResult analysisResult = createAnalysisResult(EMPTY_ORIGINS, 0, 0,
            EMPTY_ERRORS, 0);
    when(analysisResult.getQualityGateStatus()).thenReturn(QualityGateStatus.PASSED);
    String createdHtml = createSummary(analysisResult).create();
    assertThat(createdHtml).containsPattern(
            createWarningsLink(
                    "Quality gate: <img src=\"color\" class=\"icon-blue\" alt=\"Success\" title=\"Success\"> Success"));
}