ClientSnapshot extends AbstractClientHandle<AbstractProxyTransaction> { public FluentFuture<Optional<NormalizedNode<?, ?>>> read(final YangInstanceIdentifier path) { return ensureSnapshotProxy(path).read(path); } ClientSnapshot(final AbstractClientHistory parent, final TransactionIdentifier transactionId); FluentFuture<Boolean> exists(final YangInstanceIdentifier path); FluentFuture<Optional<NormalizedNode<?, ?>>> read(final YangInstanceIdentifier path);  }
@Test public void testRead() throws Exception { final ListenableFuture<Optional<NormalizedNode<?, ?>>> exists = getHandle().read(PATH); verify(getDataTreeSnapshot()).readNode(PATH); assertFalse(getWithTimeout(exists).isPresent()); }