CaseProvisioningServiceImpl implements CaseProvisioningService { public void onCaseManagementProvisioningFailedEvent(@Observes CaseProvisioningFailedEvent event) { status = FAILED; }  @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 testOnCaseManagementProvisioningFailedEvent() { service.onCaseManagementProvisioningFailedEvent(new CaseProvisioningFailedEvent()); assertEquals(FAILED, service.getProvisioningStatus()); }