@Test public void shouldCallCallback() throws Exception { traverser.setBeforeTraverse(beforeTraverse); traverser.setAfterTraverse(afterTraverse); traverser.traverse(foo); verify(callback, times(5)).doWith(any(Field.class), any(), anyString()); }
public void traverse(Object root) { traverse(root, null); }
ObjectGraphTraverser { public void traverse(Object root) { traverse(root, null); } }
ObjectGraphTraverser { public void traverse(Object root) { traverse(root, null); } ObjectGraphTraverser(TraverserCallback callback, TraverserFieldFilter traverseFilter,
			TraverserFieldFilter fieldFilter, List<Traverser> traversers);  ObjectGraphTraverser(TraverserCallback callback, TraverserFieldFilter traverseFilter,
			TraverserFieldFilter fieldFilter); }
ObjectGraphTraverser { public void traverse(Object root) { traverse(root, null); } ObjectGraphTraverser(TraverserCallback callback, TraverserFieldFilter traverseFilter,
			TraverserFieldFilter fieldFilter, List<Traverser> traversers);  ObjectGraphTraverser(TraverserCallback callback, TraverserFieldFilter traverseFilter,
			TraverserFieldFilter fieldFilter); void traverse(Object root); void traverse(final Object target, final String currentPath); }
ObjectGraphTraverser { public void traverse(Object root) { traverse(root, null); } ObjectGraphTraverser(TraverserCallback callback, TraverserFieldFilter traverseFilter,
			TraverserFieldFilter fieldFilter, List<Traverser> traversers);  ObjectGraphTraverser(TraverserCallback callback, TraverserFieldFilter traverseFilter,
			TraverserFieldFilter fieldFilter); void traverse(Object root); void traverse(final Object target, final String currentPath);  }