### Question:
FormAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.FormListener { public void sectionInserted(org.apache.pivot.wtk.Form arg0, int arg1) { if (sectionInserted != null) { sectionInserted.call(arg0, arg1); } }  CallableWithArgs<Void> getSectionInserted(); CallableWithArgs<Void> getSectionsRemoved(); CallableWithArgs<Void> getSectionHeadingChanged(); CallableWithArgs<Void> getFieldInserted(); CallableWithArgs<Void> getFieldsRemoved(); void setSectionInserted(CallableWithArgs<Void> sectionInserted); void setSectionsRemoved(CallableWithArgs<Void> sectionsRemoved); void setSectionHeadingChanged(CallableWithArgs<Void> sectionHeadingChanged); void setFieldInserted(CallableWithArgs<Void> fieldInserted); void setFieldsRemoved(CallableWithArgs<Void> fieldsRemoved); void sectionInserted(org.apache.pivot.wtk.Form arg0, int arg1); void sectionsRemoved(org.apache.pivot.wtk.Form arg0, int arg1, org.apache.pivot.collections.Sequence<Form.Section> arg2); void sectionHeadingChanged(org.apache.pivot.wtk.Form.Section arg0); void fieldInserted(org.apache.pivot.wtk.Form.Section arg0, int arg1); void fieldsRemoved(org.apache.pivot.wtk.Form.Section arg0, int arg1, org.apache.pivot.collections.Sequence<Component> arg2);  }### Answer:
@Test public void testSectionInserted() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getSectionInserted()); adapter.sectionInserted(null, 0); assertFalse(invoked[0]); adapter.setSectionInserted(callable); adapter.sectionInserted(null, 0); assertTrue(invoked[0]); }