assertion for calling SwingUtilities.invokeAndWait from within readAction