ValueModel valueModel = formModel.getValueModel("property");
valueModel.setValue("dirty");
// sleep for a while so the gui can update itself
Thread.sleep(500);
formModel.revert();
// find a reference to the overlay component
JLayeredPane layeredPane = frame.getRootPane().getLayeredPane();
assertEquals("sanity check: assume the layered pane only has one component, and that it is a panel and the overlay",
2, layeredPane.getComponentCount());