TransactionCommitFailedExceptionMapper extends ExceptionMapper<TransactionCommitFailedException> { public static TransactionCommitFailedExceptionMapper create(final String opName) { return new TransactionCommitFailedExceptionMapper(opName); } private  TransactionCommitFailedExceptionMapper(final String opName); static TransactionCommitFailedExceptionMapper create(final String opName); static final TransactionCommitFailedExceptionMapper PRE_COMMIT_MAPPER; static final TransactionCommitFailedExceptionMapper CAN_COMMIT_ERROR_MAPPER; static final TransactionCommitFailedExceptionMapper COMMIT_ERROR_MAPPER; }
@Test(expected = TransactionCommitFailedException.class) public void create() throws Exception { throw TransactionCommitFailedExceptionMapper.create("test").newWithCause("test_cause", new Throwable()); }