public void testIdleTimeout() throws Exception {
final CountDownLatch latch = new CountDownLatch(1);
TestEchoShellFactory.TestEchoShell.latch = new CountDownLatch(1);
sshd.getProperties().put(SshServer.IDLE_TIMEOUT, "2500");
sshd.getSessionFactory().addListener(new SessionListener() {
public void sessionCreated(Session session) {
System.out.println("Session created");
}
public void sessionEvent(Session sesssion, Event event) {
System.out.println("Session event: " + event);