public XADataSource swap(final DataSource dataSource) {
        XADataSource result = createXADataSource();
        setProperties(result, getDatabaseAccessConfiguration(dataSource));
        return result;
    }
@Test
    void assertSwap() {
        DataSourceSwapper swapper = new DataSourceSwapper(xaDataSourceDefinition);
        assertResult(swapper.swap(new MockedDataSource()));
    }