Adding spec test for tricky case with field shadowing in anonymous class