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