### Question:
TextAreaContentAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TextAreaContentListener { public void paragraphInserted(org.apache.pivot.wtk.TextArea arg0, int arg1) { if (paragraphInserted != null) { paragraphInserted.call(arg0, arg1); } }  CallableWithArgs<Void> getParagraphInserted(); CallableWithArgs<Void> getParagraphsRemoved(); CallableWithArgs<Void> getTextChanged(); void setParagraphInserted(CallableWithArgs<Void> paragraphInserted); void setParagraphsRemoved(CallableWithArgs<Void> paragraphsRemoved); void setTextChanged(CallableWithArgs<Void> textChanged); void paragraphInserted(org.apache.pivot.wtk.TextArea arg0, int arg1); void paragraphsRemoved(org.apache.pivot.wtk.TextArea arg0, int arg1, org.apache.pivot.collections.Sequence<TextArea.Paragraph> arg2); void textChanged(org.apache.pivot.wtk.TextArea arg0);  }### Answer:
@Test public void testParagraphInserted() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getParagraphInserted()); adapter.paragraphInserted(null, 0); assertFalse(invoked[0]); adapter.setParagraphInserted(callable); adapter.paragraphInserted(null, 0); assertTrue(invoked[0]); }