@Test
void shouldCreatePriorityChartWithZeroWarningsAndErrors() {

    SeverityTrendChart chart = new SeverityTrendChart();
    List<BuildResult<AnalysisBuildResult>> results = new ArrayList<>();
    results.add(createResult(4, 0, 0, 0, 0));
    results.add(createResult(3, 0, 0, 0, 0));
    results.add(createResult(2, 2, 2, 4, 6));
    results.add(createResult(1, 3, 1, 2, 3));
    LinesChartModel model = chart.create(results, new ChartModelConfiguration());
    verifySeries(model.getSeries().get(0), Severity.WARNING_LOW, 3, 6, 0, 0);
    verifySeries(model.getSeries().get(1), Severity.WARNING_NORMAL, 2, 4, 0, 0);
    verifySeries(model.getSeries().get(2), Severity.WARNING_HIGH, 1, 2, 0, 0);
    verifySeries(model.getSeries().get(3), Severity.ERROR, 3, 2, 0, 0);
    assertThatJson(model).node("domainAxisLabels")
            .isArray().hasSize(4).containsExactly("#1", "#2", "#3", "#4");
    assertThatJson(model).node("buildNumbers")
            .isArray().hasSize(4).containsExactly(1, 2, 3, 4);
    assertThatJson(model).node("series")
            .isArray().hasSize(4);
}