### Question:
SimpleFlowerFactory extends AbstractLifecycle implements FlowerFactory { @Override public void registerExceptionHandler(Class<? extends Throwable> exceptionClass, ExceptionHandler exceptionHandler) { exceptionHandlerManager.registerHandler(exceptionClass, exceptionHandler); } SimpleFlowerFactory();  SimpleFlowerFactory(String configLocation);  SimpleFlowerFactory(FlowerConfig flowerConfig); static FlowerFactory get(); @Override FlowerConfig getFlowerConfig(); @Override Set<Registry> getRegistry(); @Override ActorFactory getActorFactory(); @Override void doStart(); @Override void doStop(); @Override ServiceFactory getServiceFactory(); @Override ServiceFacade getServiceFacade(); @Override void registerExceptionHandler(Class<? extends Throwable> exceptionClass, ExceptionHandler exceptionHandler); @Override void setDefaultExceptionHandler(ExceptionHandler defaultExceptionHandler); @Override FlowRouter buildFlowRouter(String flowName, int flowNumber);  }### Answer:
@Test public void testRegisterExceptionHandler() { FlowerFactory flowerFactory = new SimpleFlowerFactory(); ExceptionHandler exceptionHandler = new DefaultExceptionHandler(); flowerFactory.registerExceptionHandler(ServiceNotFoundException.class, exceptionHandler); flowerFactory.setDefaultExceptionHandler(exceptionHandler); }