public void testCloseListener() {
CloseListener cl = EasyMock.createMock(Window.CloseListener.class);
// Expectations
cl.windowClose(EasyMock.isA(CloseEvent.class));
// Start actual test
EasyMock.replay(cl);
// Add listener and send a close event -> should end up in listener once