JenaProperties implements Properties { @Override public Collection<Axiom<?>> getProperties(NamedResource individual, URI context, boolean includeInferred) throws JenaDriverException { Objects.requireNonNull(individual); beforeCallback.execute(); return adapter.propertiesHandler().getProperties(individual, context, includeInferred); } JenaProperties(JenaAdapter adapter, Procedure beforeCallback, Procedure afterChangeCallback); @Override Collection<Axiom<?>> getProperties(NamedResource individual, URI context, boolean includeInferred); @Override void addProperties(NamedResource individual, URI context, Map<Assertion, Set<Value<?>>> properties); @Override void removeProperties(NamedResource individual, URI context, Map<Assertion, Set<Value<?>>> properties);  }
@Test public void getPropertiesInvokesPropertiesHandler() throws Exception { properties.getProperties(SUBJECT, null, false); verify(propertiesHandler).getProperties(SUBJECT, null, false); }
@Test public void getPropertiesInvokesBeforeCallbackPriorToPropertiesLoading() throws Exception { properties.getProperties(SUBJECT, null, false); final InOrder inOrder = Mockito.inOrder(beforeMock, propertiesHandler); inOrder.verify(beforeMock).execute(); inOrder.verify(propertiesHandler).getProperties(SUBJECT, null, false); }