frame = createVisibleFrameWithAncestor();
ancestor.setBounds(10, 10, 10, 10);
ancestor.setVisible(false);
waitForIdle();
listener.reset();
ComponentListener compListener = addComponentListener(component);
ancestor.setBounds(20, 20, 20, 20);
waitForIdle();
synchronized (compListener) {
compListener.wait(1000);
}
assertTrue(listener.getNumEvents() >= 1);
performChecksInQueue(ancestor, frame.getContentPane(), AncestorEvent.ANCESTOR_MOVED);
}