final LastOnePhaseResource firstResource = new LastOnePhaseResource() ;
final LastOnePhaseResource secondResource = new LastOnePhaseResource() ;
final LastOnePhaseResource thirdResource = new LastOnePhaseResource() ;
final TransactionManager tm = new TransactionManagerImple() ;
tm.begin() ;
try
{
final Transaction tx = tm.getTransaction() ;
assertTrue("First resource enlisted", tx.enlistResource(firstResource)) ;
assertTrue("Second resource enlisted", tx.enlistResource(secondResource)) ;