FossologyHostKeyHandler { public RequestStatus setFingerPrints(List<FossologyHostFingerPrint> fingerPrints) throws TException { final List<DocumentOperationResult> documentOperationResults = fossologyHostKeyConnector.executeBulk(fingerPrints); if (documentOperationResults.isEmpty()) { return RequestStatus.SUCCESS; } else { return RequestStatus.FAILURE; } } @Autowired  FossologyHostKeyHandler(FossologyFingerPrintRepository fossologyHostKeyConnector); List<FossologyHostFingerPrint> getFingerPrints(); RequestStatus setFingerPrints(List<FossologyHostFingerPrint> fingerPrints);  }
@Test public void testSetFingerPrints() throws Exception { List<FossologyHostFingerPrint> fingerPrints = Collections.emptyList(); fossologyHostKeyHandler.setFingerPrints(fingerPrints); verify(fossologyHostKeyConnector).executeBulk(fingerPrints); }