SesameLists implements Lists { @Override public List<Axiom<NamedResource>> loadSimpleList(SimpleListDescriptor descriptor) throws OntoDriverException { verifyArgs(descriptor); return adapter.getSimpleListHandler().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 testLoadSimpleList() throws Exception { final SimpleListDescriptor descriptor = mock(SimpleListDescriptor.class); lists.loadSimpleList(descriptor); verify(beforeMock).execute(); verify(adapterMock).getSimpleListHandler(); verify(simpleListHandlerMock).loadList(descriptor); }