BindingDOMDataTreeServiceAdapter extends AbstractBindingAdapter<DOMDataTreeService> implements DataTreeService { @Override public <T extends DataTreeListener> ListenerRegistration<T> registerListener(final T listener, final Collection<DataTreeIdentifier<?>> subtrees, final boolean allowRxMerges, final Collection<DataTreeProducer> producers) throws DataTreeLoopException { throw new UnsupportedOperationException("Not implemented yet."); } BindingDOMDataTreeServiceAdapter(final AdapterContext adapterContext, final DOMDataTreeService delegate); @Override DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees); @Override ListenerRegistration<T> registerListener(final T listener,
            final Collection<DataTreeIdentifier<?>> subtrees, final boolean allowRxMerges,
            final Collection<DataTreeProducer> producers);  }
@Test(expected = UnsupportedOperationException.class) public void registerListenerTest() throws DataTreeLoopException { bindingDOMDataTreeServiceAdapter.registerListener(mock(DataTreeListener.class), ImmutableSet.of(), false, ImmutableSet.of()); }