@Override
    public void commit(final Xid xid, final boolean onePhase) throws XAException {
        try {
            delegate.commit(xid, onePhase);
        } catch (final XAException ex) {
            throw mapXAException(ex);
        }
    }
@Test
    void assertCommit() throws XAException {
        singleXAResource.commit(xid, true);
        verify(xaResource).commit(xid, true);
    }