### Question:
MeterAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MeterListener { public void textChanged(org.apache.pivot.wtk.Meter arg0, java.lang.String arg1) { if (textChanged != null) { textChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getTextChanged(); CallableWithArgs<Void> getOrientationChanged(); CallableWithArgs<Void> getPercentageChanged(); void setTextChanged(CallableWithArgs<Void> textChanged); void setOrientationChanged(CallableWithArgs<Void> orientationChanged); void setPercentageChanged(CallableWithArgs<Void> percentageChanged); void textChanged(org.apache.pivot.wtk.Meter arg0, java.lang.String arg1); void orientationChanged(org.apache.pivot.wtk.Meter arg0); void percentageChanged(org.apache.pivot.wtk.Meter arg0, double arg1);  }### Answer:
@Test public void testTextChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getTextChanged()); adapter.textChanged(null, null); assertFalse(invoked[0]); adapter.setTextChanged(callable); adapter.textChanged(null, null); assertTrue(invoked[0]); }