titleCheckBox.click();
Mockito.verify(mockCanvasManifestation,Mockito.times(++persistentCount)).fireFocusPersist();
// check that both focus lost and enter will trigger focus for text fields
JTextComponentFixture textFixture = window.textBox(new TextFieldMatcher("Panel Title:"));
textFixture.enterText("abc").pressAndReleaseKey(KeyPressInfo.keyCode(KeyEvent.VK_ENTER));
Mockito.verify(mockCanvasManifestation,Mockito.times(++persistentCount)).fireFocusPersist();
titleCheckBox.focus();
// should not fire persistence event if the text hasn't changed
Mockito.verify(mockCanvasManifestation,Mockito.times(persistentCount)).fireFocusPersist();