protected void setUp() throws Exception {
super.setUp();
out = new ByteArrayOutputStream();
CostModel costModel = new CostModel();
SourceLocation location = new SourceLocation("com/google/FooClass.java", 1);
final Issue issue =
new Issue(location, "void doThing()", 0.5f, IssueType.CONSTRUCTION, IssueSubType.SETTER);
final MethodCost methodCost = new MethodCost("", "void setUp()", 1, false, false, false);
methodCost.addCostSource(new MethodInvocationCost(location, methodCost,
Reason.IMPLICIT_SETTER, new Cost(100, 1, new int[0])));
//TODO: looks like we want IssuesReporter to be an interface