ClientBackedReadWriteTransaction extends ClientBackedWriteTransaction implements DOMStoreReadWriteTransaction { @Override public FluentFuture<Optional<NormalizedNode<?, ?>>> read(final YangInstanceIdentifier path) { return delegate().read(path); } ClientBackedReadWriteTransaction(final ClientTransaction delegate, final @Nullable Throwable allocationContext); @Override FluentFuture<Optional<NormalizedNode<?, ?>>> read(final YangInstanceIdentifier path); @Override FluentFuture<Boolean> exists(final YangInstanceIdentifier path);  }
@Test public void testRead() throws Exception { final FluentFuture<Optional<NormalizedNode<?, ?>>> result = object().read(YangInstanceIdentifier.empty()); final Optional<NormalizedNode<?, ?>> resultData = result.get(); assertTrue(resultData.isPresent()); assertEquals(data, resultData.get()); }