AtomikosTransactionManager implements XATransactionManager { @Override public void removeRecoveryResource(final String dataSourceName, final XADataSource xaDataSource) { userTransactionService.removeResource(new AtomikosXARecoverableResource(dataSourceName, xaDataSource)); }  @Override void init(); @Override void registerRecoveryResource(final String dataSourceName, final XADataSource xaDataSource); @Override void removeRecoveryResource(final String dataSourceName, final XADataSource xaDataSource); @SneakyThrows({SystemException.class, RollbackException.class}) @Override void enlistResource(final SingleXAResource xaResource); @Override TransactionManager getTransactionManager(); @Override void close();  }
@Test public void assertRemoveRecoveryResource() { atomikosTransactionManager.removeRecoveryResource("ds1", xaDataSource); verify(userTransactionService).removeResource(any(AtomikosXARecoverableResource.class)); }