### Question:
KycInfoService { @Transactional public KycInfo increaseNumberOfRemindersSent(long investorId) throws InvestorNotFoundException { Optional<KycInfo> kycInfoFromDb = kycInfoRepository.findOptionalByInvestorId(investorId); if(kycInfoFromDb.isPresent()) { KycInfo kycInfo = kycInfoFromDb.get().setNoOfRemindersSent(kycInfoFromDb.get().getNoOfRemindersSent() + 1); kycInfoFromDb = Optional.of(kycInfoRepository.save(kycInfo)); } 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 testIncreaseNumberOfRemindersSent() throws KycInfoNotSavedException { kycInfoService.saveKycInfo(1, kycUri); try { kycInfoService.increaseNumberOfRemindersSent(1); } catch(InvestorNotFoundException e) { fail(e.getMessage()); } Optional<KycInfo> oKycInfo = kycInfoRepository.findOptionalByInvestorId(1); assertKycInfo(oKycInfo.get(), 1, false, 1, false, kycUri); try { kycInfoService.increaseNumberOfRemindersSent(1); kycInfoService.increaseNumberOfRemindersSent(1); } catch (InvestorNotFoundException e) { fail(e.getMessage()); } oKycInfo = kycInfoRepository.findOptionalByInvestorId(1); assertKycInfo(oKycInfo.get(), 1, false, 3, false, kycUri); }