.createProcessInstanceQuery()
.processInstanceId(pi.getId())
.singleResult());
try {
Rating raiting = findRating();
Assert.fail("this should have failed!");
}catch (NoResultException e) {
// however, there is no raiting since the unit of work in
// which the service task is invoked still fails
}