FossologyHandler implements FossologyService.Iface { @Override public String getPublicKey() throws TException { return new String(fossologyPubKey); } @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 testGetPublicKey() throws Exception { assertThat(fossologyHandler.getPublicKey(), is(pubkey)); }