ClientTransaction extends AbstractClientHandle<AbstractProxyTransaction> { public FluentFuture<Optional<NormalizedNode<?, ?>>> read(final YangInstanceIdentifier path) { return ensureTransactionProxy(path).read(path); } ClientTransaction(final AbstractClientHistory parent, final TransactionIdentifier transactionId); DOMDataTreeWriteCursor openCursor(); FluentFuture<Boolean> exists(final YangInstanceIdentifier path); FluentFuture<Optional<NormalizedNode<?, ?>>> read(final YangInstanceIdentifier path); void delete(final YangInstanceIdentifier path); void merge(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data); void write(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data); DOMStoreThreePhaseCommitCohort ready();  }
@Test public void testRead() throws Exception { final FluentFuture<Optional<NormalizedNode<?, ?>>> resultFuture = getHandle().read(PATH); verify(modification).readNode(PATH); final Optional<NormalizedNode<?, ?>> result = getWithTimeout(resultFuture); assertTrue(result.isPresent()); assertEquals(DATA, result.get()); }