public void testKeyTypedEvent() throws Exception { KeyEvent event = new KeyEvent(new JPanel(), 1, 2, 3, 4, 'a'); panel.keyTyped(event); assertSame(event, prop.typedKey); }