OwlapiProperties implements Properties { @Override public Collection<Axiom<?>> getProperties(NamedResource individual, URI context, boolean includeInferred) throws OntoDriverException { Objects.requireNonNull(individual, getNPXMessageSupplier("individual")); beforeCallback.execute(); return adapter.getPropertiesHandler().getProperties(individual, includeInferred); } OwlapiProperties(OwlapiAdapter 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 getPropertiesChecksForConnectionActivity() throws Exception { final Collection<Axiom<?>> props = new ArrayList<>(); when(handlerMock.getProperties(eq(INDIVIDUAL), anyBoolean())).thenReturn(props); final Collection<Axiom<?>> result = properties.getProperties(INDIVIDUAL, null, true); assertSame(props, result); verify(beforeMock).execute(); }