JenaLists implements Lists { @Override public List<Axiom<NamedResource>> loadSimpleList(SimpleListDescriptor descriptor) throws OntoDriverException { executeBeforeCallbackAndVerifyArgument(descriptor); Objects.requireNonNull(descriptor); return adapter.simpleListHandler().loadList(descriptor); } JenaLists(JenaAdapter adapter, Procedure beforeCallback, Procedure afterChangeCallback); @Override List<Axiom<NamedResource>> loadSimpleList(SimpleListDescriptor descriptor); @Override void persistSimpleList(SimpleListValueDescriptor descriptor); @Override void updateSimpleList(SimpleListValueDescriptor descriptor); @Override List<Axiom<NamedResource>> loadReferencedList(ReferencedListDescriptor descriptor); @Override void persistReferencedList(ReferencedListValueDescriptor descriptor); @Override void updateReferencedList(ReferencedListValueDescriptor descriptor);  }
@Test public void loadSimpleListInvokesBeforeCallbackBeforeSimpleListHandler() throws Exception { final SimpleListDescriptor descriptor = new SimpleListDescriptorImpl(RESOURCE, HAS_LIST, HAS_NEXT); lists.loadSimpleList(descriptor); final InOrder inOrder = Mockito.inOrder(beforeMock, simpleListHandlerMock); inOrder.verify(beforeMock).execute(); inOrder.verify(simpleListHandlerMock).loadList(descriptor); }