public static void testConfirmWithComplete()
throws Exception
{
UserBusinessActivity uba = UserBusinessActivity.getUserBusinessActivity();
BusinessActivityManager bam = BusinessActivityManager.getBusinessActivityManager();
DemoBusinessParticipantWithComplete p = new DemoBusinessParticipantWithComplete(DemoBusinessParticipantWithComplete.COMPLETE, "1234");
try {
uba.begin();
bam.enlistForBusinessAgreementWithCoordinatorCompletion(p, "1237");
uba.complete();
} catch (Exception eouter) {
try {
uba.cancel();
} catch(Exception einner) {
}
throw eouter;
}
uba.cancel();
assertTrue(p.passed());
}