TxUtils { public static long getMaxVisibleTimestamp(Transaction tx) { return tx.getWritePointer() < Long.MAX_VALUE ? tx.getWritePointer() + 1 : tx.getWritePointer(); }  static long getOldestVisibleTimestamp(Map<byte[], Long> ttlByFamily, Transaction tx); static long getOldestVisibleTimestamp(Map<byte[], Long> ttlByFamily, Transaction tx, boolean readNonTxnData); static long getMaxVisibleTimestamp(Transaction tx); static Transaction createDummyTransaction(TransactionVisibilityState txVisibilityState); static long getFirstShortInProgress(Map<Long, TransactionManager.InProgressTx> inProgress); static long getTimestampForTTL(long cellTs); static boolean isPreExistingVersion(long version);  }
@Test public void testMaxVisibleTimestamp() { assertEquals(Long.MAX_VALUE, TxUtils.getMaxVisibleTimestamp(Transaction.ALL_VISIBLE_LATEST)); }