@Test
void shouldCreatePriorityChartWithDifferentDisplayNames() {

    SeverityTrendChart chart = new SeverityTrendChart();
    List<BuildResult<AnalysisBuildResult>> compositeResults = new ArrayList<>();
    compositeResults.add(new BuildResult<>(new Build(2), new CompositeBuildResult().add(
            createAnalysisBuildResult(0, 2, 4, 6),
            createAnalysisBuildResult(0, 12, 14, 16))));
    compositeResults.add(new BuildResult<>(new Build(1), new CompositeBuildResult().add(
            createAnalysisBuildResult(3, 1, 2, 3),
            createAnalysisBuildResult(1, 11, 12, 13))));
    LinesChartModel model = chart.create(compositeResults, new ChartModelConfiguration());
    verifySeries(model.getSeries().get(0), Severity.WARNING_LOW, 16, 22);
    verifySeries(model.getSeries().get(1), Severity.WARNING_NORMAL, 14, 18);
    verifySeries(model.getSeries().get(2), Severity.WARNING_HIGH, 12, 14);
    verifySeries(model.getSeries().get(3), Severity.ERROR, 4, 0);
    assertThatJson(model).node("domainAxisLabels")
            .isArray().hasSize(2).containsExactly("#1", "#2");
    assertThatJson(model).node("buildNumbers")
            .isArray().hasSize(2).containsExactly(1, 2);
    assertThatJson(model).node("series")
            .isArray().hasSize(4);
}