protected void setUp(NamedFactory<org.apache.sshd.common.Compression> compression) throws Exception {
sshd = SshServer.setUpDefaultServer();
sshd.setPort(8000);
sshd.setKeyPairProvider(Utils.createTestHostKeyProvider());
sshd.setCompressionFactories(Arrays.<NamedFactory<org.apache.sshd.common.Compression>>asList(compression));
sshd.setShellFactory(new EchoShellFactory());
sshd.setPasswordAuthenticator(new BogusPasswordAuthenticator());
sshd.start();
JSch.setConfig("compression.s2c", "zlib@openssh.com,zlib,none");
JSch.setConfig("compression.c2s", "zlib@openssh.com,zlib,none");
JSch.setConfig("zlib", org.apache.sshd.util.Compression.class.getName());