@Test
public void testExceptionOnNonStateAction() {

    AbstractActionExt actionExt = createStateAction();
    actionExt.setStateAction(false);
    JToggleButton button = new JToggleButton();
    try {
       factory.configureSelectableButton(button, actionExt, null);
       fail("configureSelectable didn't throw IllegalArgument for non-state action ");
    } catch (IllegalArgumentException e) {
        // nothing todo - this is what we expect
    } catch (Exception e) {
        fail("caught unexpected exception " + e);
    }
    
}