assertEquals(0, listener.getNumEvents());
ComponentListener compListener = addComponentListener(component);
component.setLocation(20, 20);
waitForIdle();
synchronized (compListener) {
compListener.wait(1000);
}
assertEquals(1, listener.getNumEvents());
performChecks(component, ancestor, AncestorEvent.ANCESTOR_MOVED);
}