ButtonModel model = button.getModel();
button.addActionListener(buttonActionListener);
model.addActionListener(modelActionListener);
assertEquals(0, buttonActionListener.eventCount);
assertEquals(0, modelActionListener.eventCount);
button.doAction();
assertEquals(1, buttonActionListener.eventCount);
assertEquals(1, modelActionListener.eventCount);
assertEquals(button, buttonActionListener.lastEvent.getSource());
assertEquals(model, modelActionListener.lastEvent.getSource());