PairService { public List<UpdatedPair> getAllWithSymbolOrNameContaining(String symbolOrName) { return pairRepo.findAllUpdatedPairBySymbolContainsIgnoreCaseOrNameContainsIgnoreCase(symbolOrName, symbolOrName); }  Pair getForCodeAndProvider(String code, String provider); Pair create(String code, String name, String source, String target, String exchange, String provider); void remove(String symbol, String providerCode); List<UpdatedPair> getAllWithSymbolOrNameContaining(String symbolOrName); List<Pair> getAllFromProvider(String providerCode); List<UpdatedPair> getAll();  }
@Test public void testGetAllWithSymbolOrNameContaining_Code() { List<UpdatedPair> result = pairService.getAllWithSymbolOrNameContaining("ub"); assertThat(result).extracting("symbol").containsExactly("UBI.PA"); }
@Test public void testGetAllWithSymbolOrNameContaining_Name() { List<UpdatedPair> result = pairService.getAllWithSymbolOrNameContaining("enT"); assertThat(result).extracting("symbol").containsExactly("UBI.PA"); }