TransitionableState state;
protected void setUp() {
flow = new Flow("myFlow");
state = new TransitionableState(flow, "state1") {
protected void doEnter(RequestControlContext context) {
throw new FlowExecutionException(getFlow().getId(), getId(), "Oops!", new TestException());
}
};
state.getTransitionSet().add(new Transition(toState("end")));