### Question:
LuceneAspspRepository implements AspspRepository { @Override public List<Aspsp> findLike(Aspsp aspsp, String after, int size) { if (logger.isDebugEnabled()) { logger.debug(buildFindLikeLoggingMessage(aspsp)); } BooleanQuery.Builder queryBuilder = new BooleanQuery.Builder(); if (aspsp.getName() != null) { queryBuilder.add(buildQueryWithPriority(getNameFuzzyQuery(aspsp.getName()), LOW_PRIORITY), BooleanClause.Occur.SHOULD); queryBuilder.add(buildQueryWithPriority(getNameRegexpQuery(aspsp.getName()), LOW_PRIORITY), BooleanClause.Occur.SHOULD); } if (aspsp.getBic() != null && aspsp.getBankCode() != null) { String bic = aspsp.getBic(); String bankCode = aspsp.getBankCode(); queryBuilder.add(buildQueryWithPriority(getBicAndBankCodeQuery(bic, bankCode), HIGH_PRIORITY), BooleanClause.Occur.SHOULD); queryBuilder.add(buildQueryWithPriority(getBicAndEmptyBankCodeQuery(bic), MEDIUM_PRIORITY), BooleanClause.Occur.SHOULD); queryBuilder.add(buildQueryWithPriority(getEmptyBicAndBankCodeQuery(bankCode), LOW_PRIORITY), BooleanClause.Occur.SHOULD); } else { if (aspsp.getBic() != null) { queryBuilder.add(getBicQuery(aspsp.getBic()), BooleanClause.Occur.SHOULD); } if (aspsp.getBankCode() != null) { queryBuilder.add(getBankCodeQuery(aspsp.getBankCode()), BooleanClause.Occur.SHOULD); } } return find(queryBuilder.build(), after, size); } LuceneAspspRepository(Directory directory); Aspsp save(Aspsp aspsp); @Override void deleteById(String aspspId); @Override void deleteAll(); @Override void saveAll(List<Aspsp> aspsps); @Override Optional<Aspsp> findById(String id); @Override List<Aspsp> findByBic(String bic, String after, int size); @Override List<Aspsp> findByBankCode(String bankCode, String after, int size); @Override List<Aspsp> findByName(String name, String after, int size); @Override List<Aspsp> findAll(String after, int size); @Override List<Aspsp> findLike(Aspsp aspsp, String after, int size); @Override List<Aspsp> findByIban(String iban, String after, int size);  }### Answer:
@Test void findLike() { Aspsp aspsp1 = new Aspsp(); aspsp1.setBic("ABCDEF"); luceneAspspRepository.save(aspsp1); Aspsp aspsp2 = new Aspsp(); aspsp2.setBankCode("123446"); luceneAspspRepository.save(aspsp2); Aspsp aspsp3 = new Aspsp(); aspsp3.setBic("ABC"); aspsp3.setBankCode("123"); List<Aspsp> found = luceneAspspRepository.findLike(aspsp3); assertThat(found).hasSize(2); }