verify(windows).markAsShowing(window);
}
@Test
public void shouldProcessEventWithIdEqualToWindowOpenedAndMarkWindowAsReadyIfWindowIsFileDialog() {
Window w = new FileDialog(window);
when(context.storedQueueFor(w)).thenReturn(w.getToolkit().getSystemEventQueue());
monitor.eventDispatched(new ComponentEvent(w, WINDOW_OPENED));
verify(context).addContextFor(w);
verify(windows).attachNewWindowVisibilityMonitor(w);
verify(windows).markAsShowing(w);
verify(windows).markAsReady(w);