// expected
}
}
public void testStateExceptionHandlingExceptionInEndState() {
FlowBuilder builder = new AbstractFlowBuilder() {
public void buildStates() throws FlowBuilderException {
State state = new EndState(getFlow(), "end");
state.getEntryActionList().add(new AbstractAction() {
protected Event doExecute(RequestContext context) throws Exception {
throw new NullPointerException("failing");