ActionHandler buttonActionListener = new ActionHandler();
ActionHandler modelActionListener = new ActionHandler();
Button button = new Button("Test");
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);