}
@Test
public void testFailureCase() throws InterruptedException {
LoanApplication loanApplication = new LoanApplication();
loanApplication.setFirstname("Jakob");
loanApplication.setLastname("Freund");
businessProcess.setVariable("loanApplication", loanApplication);
// since the service itself task is invoked asynchronously,
// the exception is not propagated back to us.
businessProcess.startProcessByKey("creditRating");