UnmanagedTransaction { public boolean isOpen() { return state.isOpen(); } UnmanagedTransaction(Connection connection, BookmarkHolder bookmarkHolder, long fetchSize ); CompletionStage<UnmanagedTransaction> beginAsync(Bookmark initialBookmark, TransactionConfig config ); CompletionStage<Void> closeAsync(); CompletionStage<Void> commitAsync(); CompletionStage<Void> rollbackAsync(); CompletionStage<ResultCursor> runAsync(Query query, boolean waitForRunResponse ); CompletionStage<RxResultCursor> runRx(Query query); boolean isOpen(); void markTerminated( Throwable cause ); Connection connection();  }
@Test void shouldBeOpenAfterConstruction() { UnmanagedTransaction tx = beginTx( connectionMock() ); assertTrue( tx.isOpen() ); }