@Test
public void authenticateSshSessionWithPublicKeyTest() throws IOException {

    Session sess = Mockito.mock(Session.class);
    Connection sshConnection = setupAuthenticateSshSessionWithPublicKeyTest(sess, true);
    Session result = spy.authenticateSshSessionWithPublicKey(sshConnection);
    Assert.assertEquals(sess, result);
}