@Test public void caretAnimationIsStoppedWhenPanelIsDisowned() throws Exception { stage.getKeyListener().focusOn(panel); assertEquals(true, panel.isCaretBlinking()); panel.setParent(null); assertEquals(false, panel.isCaretBlinking()); }