WithAnonymousClass { public void mainMethod1() { AbstractMap anonymousMap = new AbstractMap() { public Set entrySet() { return null; } }; anonymousMap.entrySet(); anonymousMap = null; }  void mainMethod1(); void mainMethod2();  }
@Test public void test1() { new WithAnonymousClass().mainMethod1(); }