LocalReadWriteProxyTransaction extends LocalProxyTransaction { @Override boolean sealOnly() { sealModification(); return super.sealOnly(); } LocalReadWriteProxyTransaction(final ProxyHistory parent, final TransactionIdentifier identifier,
        final DataTreeSnapshot snapshot);   LocalReadWriteProxyTransaction(final ProxyHistory parent, final TransactionIdentifier identifier);   }
@Test public void testSealOnly() throws Exception { assertOperationThrowsException(() -> transaction.getSnapshot(), IllegalStateException.class); transaction.sealOnly(); Assert.assertEquals(modification, transaction.getSnapshot()); }