public void testButtonPressedEvent() throws Exception { ActionEvent event = new ActionEvent(new JPanel(), 1, "blah"); panel.buttonPressed(event); assertSame(event, prop.pressedButton); }