CaseProvisioningServiceImpl implements CaseProvisioningService { public void onCaseManagementProvisioningCompletedEvent(@Observes CaseProvisioningCompletedEvent event) { status = COMPLETED; this.caseAppContext = event.getAppContext(); }  @PostConstruct void init(); @Override CaseProvisioningStatus getProvisioningStatus(); void onCaseManagementProvisioningStartedEvent(@Observes CaseProvisioningStartedEvent event); void onCaseManagementProvisioningCompletedEvent(@Observes CaseProvisioningCompletedEvent event); void onCaseManagementProvisioningFailedEvent(@Observes CaseProvisioningFailedEvent event); @Override String getApplicationContext();  }
@Test public void testOnCaseManagementProvisioningCompletedEvent() { service.onCaseManagementProvisioningCompletedEvent(new CaseProvisioningCompletedEvent("/context")); assertEquals(COMPLETED, service.getProvisioningStatus()); }