ClientBackedDataStore extends AbstractDataStore { @Override public DOMStoreReadWriteTransaction newReadWriteTransaction() { return new ClientBackedReadWriteTransaction(getClient().createTransaction(), allocationContext()); } ClientBackedDataStore(final ActorSystem actorSystem, final ClusterWrapper cluster,
            final Configuration configuration, final DatastoreContextFactory datastoreContextFactory,
            final DatastoreSnapshot restoreFromSnapshot); @VisibleForTesting  ClientBackedDataStore(final ActorUtils actorUtils, final ClientIdentifier identifier,
                          final DataStoreClient clientActor); @Override DOMStoreTransactionChain createTransactionChain(); @Override DOMStoreReadTransaction newReadOnlyTransaction(); @Override DOMStoreWriteTransaction newWriteOnlyTransaction(); @Override DOMStoreReadWriteTransaction newReadWriteTransaction();  }
@Test public void testNewReadWriteTransaction() { try (ClientBackedDataStore clientBackedDataStore = new ClientBackedDataStore( actorUtils, UNKNOWN_ID, clientActor)) { final DOMStoreReadWriteTransaction tx = clientBackedDataStore.newReadWriteTransaction(); assertNotNull(tx); verify(clientActor, Mockito.times(1)).createTransaction(); } }