sshd.setKeyPairProvider(Utils.createTestHostKeyProvider());
sshd.setSubsystemFactories(Arrays.<NamedFactory<Command>>asList(new SftpSubsystem.Factory()));
sshd.setShellFactory(new EchoShellFactory());
sshd.setCommandFactory(new GitPgmCommandFactory("target/git/pgm"));
sshd.setPasswordAuthenticator(new BogusPasswordAuthenticator());
sshd.start();
File serverDir = new File("target/git/pgm");
Utils.deleteRecursive(serverDir);
File repo = new File(serverDir, "test");