### Question:
KycInfoService { public KycInfo getKycInfoByKycUuid(UUID kycUuid) throws InvestorNotFoundException { Optional<KycInfo> kycInfoFromDb = kycInfoRepository.findOptionalByKycUuid(kycUuid); return kycInfoFromDb.orElseThrow(InvestorNotFoundException::new); } @Autowired  KycInfoService(KycInfoRepository kycInfoRepository); @Transactional KycInfo saveKycInfo(long investorId, URI kycUri); @Transactional KycInfo setKycComplete(long investorId, boolean isKycComplete); @Transactional KycInfo setKycCompleteByUuid(UUID uuid, boolean isKycComplete); @Transactional KycInfo setKycUri(long investorId, String kycUri); @Transactional KycInfo setKycStartEmailSent(long investorId); @Transactional KycInfo increaseNumberOfRemindersSent(long investorId); KycInfo getKycInfoByInvestorId(long investorId); KycInfo getKycInfoByKycUuid(UUID kycUuid); List<Long> getAllInvestorIdWhereStartKycEmailSent();  }### Answer:
@Test public void testGetKycInfoByKycUuid() throws KycInfoNotSavedException { kycInfoService.saveKycInfo(1, kycUri); UUID uuid = kycInfoRepository.findOptionalByInvestorId(1).get().getKycUuid(); try { KycInfo kycInfo = kycInfoService.getKycInfoByKycUuid(uuid); assertKycInfo(kycInfo, 1, false, 0, false, kycUri); } catch(InvestorNotFoundException e) { fail(e.getMessage()); } }