@Override
    public int prepare(final Xid xid) throws XAException {
        try {
            return delegate.prepare(xid);
        } catch (final XAException ex) {
            throw mapXAException(ex);
        }
    }
@Test
    void assertPrepare() throws XAException {
        singleXAResource.prepare(xid);
        verify(xaResource).prepare(xid);
    }