public void EnqueueCommitAndSync() { var mockConn = new Mock <IConnection>(); BoltV3.CommitTransaction(mockConn.Object); mockConn.Verify(x => x.Enqueue(Commit, It.IsAny <BookmarkCollector>(), null), Times.Once); mockConn.Verify(x => x.Sync(), Times.Once); }