@Test
void shouldCreateLineChartWithDuplicateColors() {

    ToolsTrendChart chart = new ToolsTrendChart();
    int availableColors = Palette.values().length;
    List<BuildResult<AnalysisBuildResult>> results = new ArrayList<>();
    for (int i = 0; i < (availableColors + 1); i++) {
        results.add(createResult(i, Integer.toString(i), 1));
    }
    LinesChartModel model = chart.create(results, new ChartModelConfiguration());
    List<String> lineColors = new ArrayList<>();
    for (LineSeries lineSeries : model.getSeries()) {
        lineColors.add(lineSeries.getItemStyle().getColor());
    }
    boolean modelHasDuplicateColors = hasDuplicates(lineColors);
    assertThat(modelHasDuplicateColors).isTrue();
}