### Question:
TextInputAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TextInputListener { public void maximumLengthChanged(org.apache.pivot.wtk.TextInput arg0, int arg1) { if (maximumLengthChanged != null) { maximumLengthChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getTextValidChanged(); CallableWithArgs<Void> getTextSizeChanged(); CallableWithArgs<Void> getMaximumLengthChanged(); CallableWithArgs<Void> getPasswordChanged(); CallableWithArgs<Void> getPromptChanged(); CallableWithArgs<Void> getTextValidatorChanged(); CallableWithArgs<Void> getStrictValidationChanged(); CallableWithArgs<Void> getEditableChanged(); void setTextValidChanged(CallableWithArgs<Void> textValidChanged); void setTextSizeChanged(CallableWithArgs<Void> textSizeChanged); void setMaximumLengthChanged(CallableWithArgs<Void> maximumLengthChanged); void setPasswordChanged(CallableWithArgs<Void> passwordChanged); void setPromptChanged(CallableWithArgs<Void> promptChanged); void setTextValidatorChanged(CallableWithArgs<Void> textValidatorChanged); void setStrictValidationChanged(CallableWithArgs<Void> strictValidationChanged); void setEditableChanged(CallableWithArgs<Void> editableChanged); void textValidChanged(org.apache.pivot.wtk.TextInput arg0); void textSizeChanged(org.apache.pivot.wtk.TextInput arg0, int arg1); void maximumLengthChanged(org.apache.pivot.wtk.TextInput arg0, int arg1); void passwordChanged(org.apache.pivot.wtk.TextInput arg0); void promptChanged(org.apache.pivot.wtk.TextInput arg0, java.lang.String arg1); void textValidatorChanged(org.apache.pivot.wtk.TextInput arg0, org.apache.pivot.wtk.validation.Validator arg1); void strictValidationChanged(org.apache.pivot.wtk.TextInput arg0); void editableChanged(org.apache.pivot.wtk.TextInput arg0);  }### Answer:
@Test public void testMaximumLengthChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getMaximumLengthChanged()); adapter.maximumLengthChanged(null, 0); assertFalse(invoked[0]); adapter.setMaximumLengthChanged(callable); adapter.maximumLengthChanged(null, 0); assertTrue(invoked[0]); }