MicroserviceXAResource extends AbstractTransactionAssistanceXAResource { String getJndiName() { return jndiName; } MicroserviceXAResource(String jndiName, final CommitRollbackCallback commitRollbackCallback); @Override boolean isSameRM(XAResource xares); static void configure(long minAgeOfTransactionInMSBeforeRelevantForRecovery, File recoveryStatePersistenceDirectory);  }
@Test public void testGetJndiName() throws XAException { MicroserviceXAResource xa = new MicroserviceXAResource("a", null); assertEquals("a", xa.getJndiName()); }