@Test
void shouldCreateChartFromSimpleReport() {

    SeverityPieChart severityPieChart = new SeverityPieChart();
    PieChartModel pieChartModel = severityPieChart.create(createReport(1, 1, 1, 1));
    List<PieData> data = pieChartModel.getData();
    assertThat(data.get(0)).isEqualTo(new PieData("Error", 1));
    assertThat(data.get(1)).isEqualTo(new PieData("High", 1));
    assertThat(data.get(2)).isEqualTo(new PieData("Normal", 1));
    assertThat(data.get(3)).isEqualTo(new PieData("Low", 1));
}