@Test
public void testCheckConnectionFailure() throws Exception {

    final RequestStatus requestStatus = RequestStatus.FAILURE;
    doReturn(127).when(fossologySshConnector).runInFossologyViaSsh(anyString());
    assertThat(fossologyHandler.checkConnection(), is(requestStatus));
    verify(fossologySshConnector).runInFossologyViaSsh(anyString());
}