GraphService { public Collection<ClassNode> findByProperty(String key, Object value) { Filter filter = new Filter(key, ComparisonOperator.EQUALS, value); return findByFilter(filter); } GraphService();  GraphService(Session session); void close(); void saveGraph(DependencyGraph dependencyGraph); void deleteAll(); Collection<ClassNode> findByProperty(String key, Object value); Collection<ClassNode> findByFilter(Filter filter);  }
@Test public void findByProperty() { graphService.findByProperty("key", "value"); verify(sessionMock).loadAll(eq(ClassNode.class), any(Filter.class)); verifyNoMoreInteractions(sessionMock); verifyZeroInteractions(txMock); }