    @Test
    public void testSelectModeChanged() {

        final boolean[] invoked = new boolean[1];
        CallableWithArgs<Void> callable = new CallableWithArgs<Void>() {
            public Void call(Object... args) {
                invoked[0] = true;
                return null;
            } 
        };

        assertNull(adapter.getSelectModeChanged());
        adapter.selectModeChanged(null, null);
        assertFalse(invoked[0]);

        adapter.setSelectModeChanged(callable);
        adapter.selectModeChanged(null, null);
        assertTrue(invoked[0]);
    }