### Question:
IdNowKycLinkCreatorService implements KycLinkCreatorService { @Override public String getKycLink(long investorId) throws InvestorNotFoundException { KycInfo kycInfo = kycInfoService.getKycInfoByInvestorId(investorId); return kycConfigHolder.getIdNowHost() + "/" + kycConfigHolder.getIdNowCompanyId() + "/userdata/" + kycInfo.getKycUuid(); }  @Override String getKycLink(long investorId);  }### Answer:
@Test public void testGetKycLink() throws InvestorNotFoundException { String kycLink = linkCreatorService.getKycLink(1); assertEquals(targetKycLink, kycLink); }
@Test(expected = InvestorNotFoundException.class) public void testGetKycLink_nonExistentInvestor() throws InvestorNotFoundException { linkCreatorService.getKycLink(2); }