new Plant(2);
try {
//Create an ExceptionBlade.
ExceptionBlade exceptionBlade = new ExceptionBlade(new NonBlockingReactor());
try {
//Create and call an exception request.
exceptionBlade.exceptionAOp().call();
System.out.println("can not get here");
} catch (IOException ise) {
System.out.println("got first IOException, as expected");
}
//Create an ExceptionHandlerBlade.
ExceptionHandlerBlade exceptionHandlerBlade =
new ExceptionHandlerBlade(exceptionBlade, new NonBlockingReactor());
//Create a test request, call it and print the results.
System.out.println(exceptionHandlerBlade.testAOp().call());
} finally {
//shutdown the facility