Remove method reference from test 988

It was causing the test to fail if we tried to build it with javac-dx
toolchain. Rewrite it to use a normal anonymous inner class.

Test: ./test/run-test --build-with-javac-dx --host 988-method-trace
Change-Id: I1ac3b6a3db79cc9c09ee2f7e9558c278fc7fc88f
2 files changed