}
public void testTransitionExecutorHandlesExceptionSuperclassMatch() {
TransitionExecutingFlowExecutionExceptionHandler handler = new TransitionExecutingFlowExecutionExceptionHandler();
handler.add(Exception.class, "state");
FlowExecutionException e = new FlowExecutionException(state.getOwner().getId(), state.getId(), "Oops",
new TestException());
assertTrue("Doesn't handle state exception", handler.canHandle(e));
e = new FlowExecutionException(state.getOwner().getId(), state.getId(), "Oops", new RuntimeException());
assertTrue("Doesn't handle state exception", handler.canHandle(e));
}