public DistributedTransactionOperationType getDistributedTransactionOperationType(final boolean autoCommit) {
        if (!autoCommit && !distributionTransactionManager.isInTransaction()) {
            return DistributedTransactionOperationType.BEGIN;
        }
        if (autoCommit && distributionTransactionManager.isInTransaction()) {
            return DistributedTransactionOperationType.COMMIT;
        }
        return DistributedTransactionOperationType.IGNORE;
    }
@Test
    void assertDistributedTransactionOperationTypeCommit() {
        connectionTransaction = new ConnectionTransaction(getXATransactionRule(), new TransactionConnectionContext());
        DistributedTransactionOperationType operationType = connectionTransaction.getDistributedTransactionOperationType(true);
        assertThat(operationType, is(DistributedTransactionOperationType.COMMIT));
    }