App { public static void main(String[] args) throws Exception { BallItem ballItem = new BallItem(); BallThread ballThread = new BallThread(); ballItem.setTwin(ballThread); ballThread.setTwin(ballItem); ballThread.start(); waiting(); ballItem.click(); waiting(); ballItem.click(); waiting(); ballThread.stopMe(); }  static void main(String[] args);  }
@Test public void test() throws Exception { String[] args = {}; App.main(args); }