FossologyHandler implements FossologyService.Iface { @Override public List<FossologyHostFingerPrint> getFingerPrints() throws TException { return fossologyHostKeyHandler.getFingerPrints(); } @Autowired  FossologyHandler(FossologyFileHandler fossologyFileHandler, FossologyHostKeyHandler fossologyHostKeyHandler, FossologySshConnector fossologySshConnector, FossologyScriptsHandler fossologyScriptsHandler, FossologySettings fossologySettings); @Override RequestStatus sendToFossology(String releaseId, User user, String clearingTeam); @Override RequestStatus sendReleasesToFossology(List<String> releaseIds, User user, String clearingTeam); @Override Release getStatusInFossology(String releaseId, User user, String clearingTeam); @Override List<FossologyHostFingerPrint> getFingerPrints(); @Override RequestStatus setFingerPrints(List<FossologyHostFingerPrint> fingerPrints); @Override RequestStatus deployScripts(); @Override RequestStatus checkConnection(); @Override String getPublicKey();  }
@Test public void testGetFingerPrints() throws Exception { final List status = mock(List.class); doReturn(status).when(fossologyHostKeyHandler).getFingerPrints(); assertThat(fossologyHandler.getFingerPrints(), sameInstance(status)); verify(fossologyHostKeyHandler).getFingerPrints(); }