}
public void testGlobalLoadAccessStateThroughFinalShouldBeOne() {
MethodCost cost =
computer.compute(GlobalStateUser.class, "void accessMutableState()");
new DrillDownReportGenerator(new PrintStream(new ByteArrayOutputStream()), new CostModel(),
null, Integer.MAX_VALUE, 0).print("", cost, 10);
assertEquals("Expecting one for read and one for write", 2L,
cost.getTotalCost().getGlobalCost());
}