OwlapiLists implements Lists { @Override public void updateReferencedList(ReferencedListValueDescriptor descriptor) throws OntoDriverException { ensureStateAndArgumentValid(descriptor); adapter.getReferencedListHandler().updateList(descriptor); afterChangeCallback.execute(); } OwlapiLists(OwlapiAdapter 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 testUpdateReferencedList() throws Exception { final ReferencedListValueDescriptor descriptor = new ReferencedListValueDescriptor(SUBJECT, HAS_LIST, HAS_NEXT, HAS_CONTENT); descriptor.addValue(NamedResource.create("http: lists.updateReferencedList(descriptor); verify(refListHandlerMock).updateList(descriptor); verify(afterMock).execute(); }