}
}
public void testContext() {
appContext = SpringMain.getApplicationContext();
IoService service = (IoService) appContext.getBean("ioAcceptor");
IoService ioAcceptorWithSSL = (IoService) appContext.getBean("ioAcceptorWithSSL");
assertTrue(service.isActive());
assertTrue(ioAcceptorWithSSL.isActive());
appContext.close();
assertFalse(service.isActive());
assertFalse(ioAcceptorWithSSL.isActive());
}