### Question:
LuceneAspspRepository implements AspspRepository { @Override public List<Aspsp> findByBankCode(String bankCode, String after, int size) { logger.debug("Searching for ASPSPs: by bank code [{}}", bankCode); Query query = getBankCodeQuery(bankCode); return find(query, 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 findByBankCode() { String bankCode = "00000000"; Aspsp aspsp = buildAspsp(null, bankCode); aspsp.setScaApproaches(singletonList(AspspScaApproach.EMBEDDED)); luceneAspspRepository.save(aspsp); List<Aspsp> actual = luceneAspspRepository.findByBankCode(bankCode, AFTER, SIZE); assertThat(actual.isEmpty()).isFalse(); assertThat(actual.size()).isEqualTo(1); assertThat(actual.get(0).getBankCode()).isEqualTo(bankCode); }