### Question:
OptLogService { public OptLogDto findById(String id) { return optLogDao.findById(id) .map(optLogMapper::toDto) .orElseThrow(ResourceNotFoundException::new); } OptLogService(OptLogDao optLogDao,
	                     OptLogMapper optLogMapper,
	                     UserServiceRpc userServiceRpc); Page<OptLogDto> findOptLogByCondition(OptLogDto optLogDto, Pageable pageable); OptLogDto findById(String id); void insertOptLog(OptLogDto optLogDto); void deleteBatch(List<String> resId);  }### Answer:
@Test public void findOptLogByPrimaryKey() { OptLogDto byId = optLogService.findById("1157967746300456962"); Assert.assertNotNull(byId); }