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