public void testVariableFormatting() throws Exception {
Type type = JavaType.fromJava("com.google.test.metric.example.MutableGlobalState." +
"FinalGlobalExample$Gadget");
FieldInfo field = new FieldInfo(null, "finalInstance", type, false, false, false);
LocalField localField = new LocalField(new Variable(
"com.google.test.metric.example.MutableGlobalState.FinalGlobalExample$" +
"FinalGlobal.finalInstance",
type, false, false), field);
assertEquals("FinalGlobalExample$Gadget finalInstance", localField.getDescription());
}