WSBACoordinatorCompletionParticipant extends WSBAParticipantCompletionParticipant implements
        BusinessAgreementWithCoordinatorCompletionParticipant { public void complete() throws WrongStateException, SystemException { invoke(Complete.class); } WSBACoordinatorCompletionParticipant(ServiceInvocationMeta serviceInvocationMeta, Map txDataMap); void complete();  }
@Test public void testCallbacks() throws Exception { LifecycleImpl lifecycle = new LifecycleImpl(); ServiceInvocationMeta serviceInvocationMeta = new ServiceInvocationMeta(lifecycle, LifecycleImpl.class, null); WSBACoordinatorCompletionParticipant participant = new WSBACoordinatorCompletionParticipant(serviceInvocationMeta, new HashMap()); participant.cancel(); participant.close(); participant.compensate(); participant.complete(); participant.confirmCompleted(true); participant.error(); participant.status(); participant.unknown(); List<Class<? extends Annotation>> actualOrder = lifecycle.getExecutionOrder(); assertOrder(actualOrder, Cancel.class, Close.class, Compensate.class, Complete.class, ConfirmCompleted.class, Error.class, Status.class, Unknown.class); }