LocalReadOnlyProxyTransaction extends LocalProxyTransaction { @Override DataTreeSnapshot readOnlyView() { return checkNotNull(snapshot, "Transaction %s is DONE", getIdentifier()); } LocalReadOnlyProxyTransaction(final ProxyHistory parent, final TransactionIdentifier identifier,
        final DataTreeSnapshot snapshot);   LocalReadOnlyProxyTransaction(final ProxyHistory parent, final TransactionIdentifier identifier);   }
@Test public void testReadOnlyView() { Assert.assertEquals(snapshot, transaction.readOnlyView()); }