public void testFocusGained() throws Exception { FocusEvent event = new FocusEvent(new JPanel(), 1); panel.focusGained(event); assertNotNull(prop.gainedFocus); assertSame(event, prop.gainedFocus); }