@Test
public void testGetStatusInFossologyIsConnectionErrorForServerNotAvailable() throws Exception {

    int uploadId = 43;
    String clearingTeam = "team d";
    doReturn(1).when(sshConnector).runInFossologyViaSsh(anyString(), any(OutputStream.class));
    FossologyStatus statusInFossology = fossologyUploader.getStatusInFossology(uploadId, clearingTeam);
    assertThat(statusInFossology, is(FossologyStatus.CONNECTION_FAILED));
    verify(sshConnector).runInFossologyViaSsh(anyString(), any(OutputStream.class));
}