@Test
public void testPersistenceIsCalledDuringActions() {
int persistentCount = 0;
FrameFixture window = WindowFinder.findFrame(TITLE).using(robot);
JCheckBoxFixture titleCheckBox = window.checkBox(new CheckBoxMatcher("Panel Title Bar"));
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));