void () { doTest(""" class Foo { void foo(){ class Inner implements Runnable { public void run(){} } new Runnable(){ public void run(){ class Inner2{} \s } }; } }""", """ -Test.java -Foo -foo(): void -Inner run(): void -$1 -run(): void Inner2"""); }