@Test
public void testSetFastModeEnabled() throws Exception {

    // run
    model.setFastModeEnabled(true);
    // verify
    assertTrue(model.isFastModeEnabled());
    verify(actionCallbacks, times(1)).saveFastModeState(true);
    verify(propertyChangedListener, times(1)).onPropertyChanged(FillTheFormDialogModel.PROPERTY_FAST_MODE_BUTTON_ICON);
    // run
    model.setFastModeEnabled(true);
    // verify
    assertTrue(model.isFastModeEnabled());
    verify(actionCallbacks, times(1)).saveFastModeState(true);
    verify(propertyChangedListener, times(2)).onPropertyChanged(FillTheFormDialogModel.PROPERTY_FAST_MODE_BUTTON_ICON);
    // run
    model.setFastModeEnabled(false);
    // verify
    assertFalse(model.isFastModeEnabled());
    verify(actionCallbacks, times(1)).saveFastModeState(true);
    verify(actionCallbacks, times(1)).saveFastModeState(false);
    verify(propertyChangedListener, times(3)).onPropertyChanged(FillTheFormDialogModel.PROPERTY_FAST_MODE_BUTTON_ICON);
}