App implements Runnable { public void g() { synchronized (lock) { f(); } }  static void main(String[] args); @Override void run(); synchronized void f(); void g();  }
@Test public void testG() { app.g(); }