test final variable in anonymous object