public void tearDown() throws Exception {
ctx.close();
}
public void testLoggingErrorHandler() {
LoggingErrorHandlerBuilder errorHandler = ctx.getBean("loggingErrorHandler", LoggingErrorHandlerBuilder.class);
assertNotNull(errorHandler);
assertEquals("The log level should be INFO", LoggingLevel.INFO, errorHandler.getLevel());
assertEquals("The log name should be foo", "foo", errorHandler.getLogName());
}