@@ -0,0 +1,982 @@
+package com.gitblit.tests;%0D%0A%0D%0Aimport java.security.KeyPair;%0D%0A%0D%0Aimport org.eclipse.jgit.transport.JschConfigSessionFactory;%0D%0Aimport org.eclipse.jgit.transport.OpenSshConfig;%0D%0Aimport org.eclipse.jgit.util.FS;%0D%0A%0D%0Aimport com.jcraft.jsch.JSch;%0D%0Aimport com.jcraft.jsch.JSchException;%0D%0Aimport com.jcraft.jsch.Session;%0D%0A%0D%0Apublic class JschConfigTestSessionFactory extends JschConfigSessionFactory %7B%0D%0A%0D%0A%09final KeyPair keyPair;%0D%0A%0D%0A%09public JschConfigTestSessionFactory(KeyPair keyPair) %7B%0D%0A%09%09this.keyPair = keyPair;%0D%0A%09%7D%0D%0A%0D%0A    @Override%0D%0A    protected void configure(OpenSshConfig.Host host, Session session) %7B%0D%0A        session.setConfig(%22StrictHostKeyChecking%22, %22no%22);%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A%09protected JSch getJSch(final OpenSshConfig.Host hc, FS fs) throws JSchException %7B%0D%0A    %09JSch jsch = super.getJSch(hc, fs);%0D%0A//    %09jsch.removeAllIdentity();%0D%0A//    %09jsch.addIdentity(%22unittest%22, keyPair.getPrivate().getEncoded(), keyPair.getPublic().getEncoded(), null);%0D%0A    %09return jsch;%0D%0A    %7D%0D%0A%7D

Add missing unit test utility class