void () { ApplicationManager.getApplication().invokeLater(new MyRunnable("1") { @Override public void run() { super.run(); TestCase.fail("Should not be executed"); } }, Conditions.alwaysTrue()); consumed.add("1"); }