JenaLists implements Lists { @Override public List<Axiom<NamedResource>> loadReferencedList(ReferencedListDescriptor descriptor) throws OntoDriverException { executeBeforeCallbackAndVerifyArgument(descriptor); return adapter.referencedListHandler().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 loadReferencedListExecutesBeforeCallbackBeforeReferencedListHandler() throws Exception { final ReferencedListDescriptor descriptor = new ReferencedListDescriptorImpl(RESOURCE, HAS_LIST, HAS_NEXT, HAS_CONTENT); lists.loadReferencedList(descriptor); final InOrder inOrder = Mockito.inOrder(beforeMock, referencedListHandlerMock); inOrder.verify(beforeMock).execute(); inOrder.verify(referencedListHandlerMock).loadList(descriptor); }