### Question:
TableViewHeaderPressAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TableViewHeaderPressListener { public void headerPressed(org.apache.pivot.wtk.TableViewHeader arg0, int arg1) { if (headerPressed != null) { headerPressed.call(arg0, arg1); } }  CallableWithArgs<Void> getHeaderPressed(); void setHeaderPressed(CallableWithArgs<Void> headerPressed); void headerPressed(org.apache.pivot.wtk.TableViewHeader arg0, int arg1);  }### Answer:
@Test public void testHeaderPressed() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getHeaderPressed()); adapter.headerPressed(null, 0); assertFalse(invoked[0]); adapter.setHeaderPressed(callable); adapter.headerPressed(null, 0); assertTrue(invoked[0]); }