DrillDownReportGenerator printer =
new DrillDownReportGenerator(new PrintStream(out), costModel, null, MAX_VALUE, 0);
methodCost3.addCostSource(new MethodInvocationCost(new SourceLocation(null, 1), methodCost2,
NON_OVERRIDABLE_METHOD_CALL, Cost.cyclomatic(2)));
methodCost2.addCostSource(new MethodInvocationCost(new SourceLocation(null, 2), methodCost2,
NON_OVERRIDABLE_METHOD_CALL, new Cost()));
methodCost3.link();
printer.print("", methodCost3, 10);
assertStringEquals("c.g.t.A.method3()V [CC: 5 / CC: 3]\n" +
" line 1: c.g.t.A.method2()V [CC: 2 / CC: 2] " + NON_OVERRIDABLE_METHOD_CALL + "\n",
out.toString());