NarayanaXATransactionManager implements XATransactionManager { @Override public void registerRecoveryResource(final String dataSourceName, final XADataSource xaDataSource) { xaRecoveryModule.addXAResourceRecoveryHelper(new DataSourceXAResourceRecoveryHelper(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 singleXAResource); @Override TransactionManager getTransactionManager(); @Override void close();  }
@Test public void assertRegisterRecoveryResource() { narayanaXATransactionManager.registerRecoveryResource("ds1", xaDataSource); verify(xaRecoveryModule).addXAResourceRecoveryHelper(any(DataSourceXAResourceRecoveryHelper.class)); }