SesameLists implements Lists { @Override public List<Axiom<NamedResource>> loadReferencedList(ReferencedListDescriptor descriptor) throws OntoDriverException { verifyArgs(descriptor); return adapter.getReferencedListHandler().loadList(descriptor); } SesameLists(SesameAdapter 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 testLoadReferencedList() throws Exception { final ReferencedListDescriptor descriptor = mock(ReferencedListDescriptor.class); lists.loadReferencedList(descriptor); verify(beforeMock).execute(); verify(adapterMock).getReferencedListHandler(); verify(referencedListHandlerMock).loadList(descriptor); }