TransactionCommitDeadlockException extends TransactionCommitFailedException { public TransactionCommitDeadlockException(final String message, final RpcError... errors) { super(message, errors); } TransactionCommitDeadlockException(final String message, final RpcError... errors);  static final Supplier<Exception> DEADLOCK_EXCEPTION_SUPPLIER; }
@Test(expected = TransactionCommitDeadlockException.class) public void transactionCommitDeadlockExceptionTest() throws Exception { throw new TransactionCommitDeadlockException(TransactionCommitDeadlockException.DEADLOCK_EXCEPTION_SUPPLIER .get().getMessage(), mock(RpcError.class)); }