@Override
  protected void configureFlowBuilderContext(MockFlowBuilderContext builderContext) {
    builderContext.registerBean("hospitalManager", hospitalManager);
    builderContext.registerBean("personService", personService);
    builderContext.registerBean("hospitalValidator", hospitalValidator);

    // setup newHospital subflow
    Flow newHospital = new Flow("newHospital");
    State start =
        new State(newHospital, "newHospital") {
          @Override
          protected void doEnter(RequestControlContext context) throws FlowExecutionException {
            // empty
          }
        };
    newHospital.setStartState(start);
    builderContext.registerSubflow(newHospital);
  }
 @Override
 protected void configureFlowBuilderContext(MockFlowBuilderContext builderContext) {
   builderContext.registerBean("bookingService", bookingService);
 }