AbstractClientHandle extends LocalAbortable implements Identifiable<TransactionIdentifier> { final T ensureProxy(final YangInstanceIdentifier path) { final State<T> local = getState(); final Long shard = parent.resolveShardForPath(path); return local.computeIfAbsent(shard, this::createProxy); } AbstractClientHandle(final AbstractClientHistory parent, final TransactionIdentifier transactionId); @Override TransactionIdentifier getIdentifier(); boolean abort(); @Override final String toString();  }
@Test public void testEnsureProxy() { final AbstractProxyTransaction expected = mock(AbstractProxyTransaction.class); final AbstractProxyTransaction proxy = handle.ensureProxy(PATH); Assert.assertEquals(0, proxy.getIdentifier().getTransactionId()); }