  @Test
  public void containsAllQualityViolationsSortedByProfitAndRemediationCosts() {

    QualityInvestmentPlan qualityInvestmentPlan = investmentPlanService.computeInvestmentPlan(analysis, "", 80);
    QualityInvestmentPlanEntry[] investments = qualityInvestmentPlan.getEntries().toArray(new QualityInvestmentPlanEntry[0]);
    assertThat(investments).hasSize(3);
    assertThat(investments[0].getArtefactLongName()).isEqualTo("C");
    assertThat(investments[1].getArtefactLongName()).isEqualTo("org.A");
    assertThat(investments[2].getArtefactLongName()).isEqualTo("org.project.B");
  }