// A new box should not be visible
harness.check(box.isPopupVisible() == false);
// Prepare robot to perform mouse click; position in middle of box
Robot r = harness.createRobot ();
r.waitForIdle ();
r.delay (100);
r.mouseMove(box.getLocationOnScreen().x + (box.getSize().width / 2),
box.getLocationOnScreen().y + (box.getSize().height / 2));
// Simulate user click on button; popup should now be visible