void (AWTEvent event) { LOG.debug("posting " + event); IdeEventQueue ideEventQueue = IdeEventQueue.getInstance(); boolean posted = ideEventQueue.doPostEvent(event); assertTrue("Was not posted: "+event, posted); boolean mustBeConsumed = event.getID() == ActionEvent.ACTION_PERFORMED; assertEquals(mustBeConsumed, ReflectionUtil.getField(AWTEvent.class, event, boolean.class, "consumed").booleanValue()); assertTrue(ReflectionUtil.getField(AWTEvent.class, event, boolean.class, "isPosted")); }