### Question:
FormAttributeAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.FormAttributeListener { public void flagChanged(org.apache.pivot.wtk.Form arg0, org.apache.pivot.wtk.Component arg1, org.apache.pivot.wtk.Form.Flag arg2) { if (flagChanged != null) { flagChanged.call(arg0, arg1, arg2); } }  CallableWithArgs<Void> getLabelChanged(); CallableWithArgs<Void> getRequiredChanged(); CallableWithArgs<Void> getFlagChanged(); void setLabelChanged(CallableWithArgs<Void> labelChanged); void setRequiredChanged(CallableWithArgs<Void> requiredChanged); void setFlagChanged(CallableWithArgs<Void> flagChanged); void labelChanged(org.apache.pivot.wtk.Form arg0, org.apache.pivot.wtk.Component arg1, java.lang.String arg2); void requiredChanged(org.apache.pivot.wtk.Form arg0, org.apache.pivot.wtk.Component arg1); void flagChanged(org.apache.pivot.wtk.Form arg0, org.apache.pivot.wtk.Component arg1, org.apache.pivot.wtk.Form.Flag arg2);  }### Answer:
@Test public void testFlagChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getFlagChanged()); adapter.flagChanged(null, null, null); assertFalse(invoked[0]); adapter.setFlagChanged(callable); adapter.flagChanged(null, null, null); assertTrue(invoked[0]); }