@Test
public void testRunInFossologyViaSsh() throws Exception {

    final int exitCode = fossologySshConnector.runInFossologyViaSsh("cmd");
    assertThat(exitCode, greaterThanOrEqualTo(0));
    verify(jSchSessionProvider).getSession(connectionTimeout);
    verify(jSchSessionProvider, atLeastOnce()).closeSession(session); // isConnected is mocked: it is disconnected twice
    verify(channel, atLeastOnce()).disconnect(); // isConnected is mocked: it is disconnected twice
}