BindingDOMDataTreeListenerAdapter extends AbstractBindingAdapter<DataTreeListener> implements DOMDataTreeListener { @Override public void onDataTreeChanged(final Collection<DataTreeCandidate> domChanges, final Map<DOMDataTreeIdentifier, NormalizedNode<?, ?>> domSubtrees) { final CurrentAdapterSerializer serializer = currentSerializer(); getDelegate().onDataTreeChanged(toBinding(serializer, domChanges), toBinding(serializer, domSubtrees)); } protected  BindingDOMDataTreeListenerAdapter(final DataTreeListener delegate, final AdapterContext codec,
            final LogicalDatastoreType store); @Override void onDataTreeChanged(final Collection<DataTreeCandidate> domChanges,
            final Map<DOMDataTreeIdentifier, NormalizedNode<?, ?>> domSubtrees); @Override void onDataTreeFailed(final Collection<DOMDataTreeListeningException> causes);  }
@Test public void onDataTreeChanged() throws Exception { bindingDOMDataTreeListenerAdapter.onDataTreeChanged(ImmutableSet.of(), ImmutableMap.of()); verify(delegate).onDataTreeChanged(any(), any()); }