@Test
void shouldCreateFallbackChartIfHealthIsDisabled() {

    HealthDescriptor healthDescriptor = new HealthDescriptor(-1, -1, Severity.WARNING_NORMAL);
    HealthTrendChart chart = new HealthTrendChart(healthDescriptor);
    List<BuildResult<AnalysisBuildResult>> resultsCheckStyle = createBuildResults();
    LinesChartModel model = chart.create(resultsCheckStyle, new ChartModelConfiguration());
    assertThatJson(model).node("domainAxisLabels")
            .isArray().containsExactly("#1", "#2", "#3", "#4");
    assertThatJson(model).node("series")
            .isArray().hasSize(1);
    assertThat(healthDescriptor.isEnabled()).isFalse();
    assertThat(model.getSeries().get(0).getName()).isEqualTo("Total (health report disabled)");
    verifySeries(model, 0, 0, 5, 10, 15);
}