@Test
public void testCopyToFossology() throws Exception {

    when(sshConnector.runInFossologyViaSsh(anyString(), any(InputStream.class))).thenReturn(0);
    final InputStream content = mock(InputStream.class);
    boolean success = fossologyUploader.copyToFossology("filename", content, false);
    assertThat(success, is(true));
    verify(sshConnector).runInFossologyViaSsh(eq("cat > 'filename'"), eq(content));
}