BitronixRecoveryResource extends ResourceBean implements XAResourceProducer { @Override public XAResourceHolder findXAResourceHolder(final XAResource xaResource) { SingleXAResource singleXAResource = (SingleXAResource) xaResource; return resourceName.equals(singleXAResource.getResourceName()) ? new SingleXAResourceHolder(xaResource, this) : null; }  @Override void init(); @Override String getUniqueName(); @SneakyThrows(SQLException.class) @Override XAResourceHolderState startRecovery(); @SneakyThrows(SQLException.class) @Override void endRecovery(); @Override void setFailed(final boolean failed); @Override XAResourceHolder findXAResourceHolder(final XAResource xaResource); @Override XAStatefulHolder createPooledConnection(final Object xaFactory, final ResourceBean bean); @Override Reference getReference(); @Override void close();  }
@Test public void assertFindXAResourceHolder() { assertNotNull(bitronixRecoveryResource.findXAResourceHolder(singleXAResource)); }