PairService { public List<Pair> getAllFromProvider(String providerCode) { return pairMapper.mapToPairs(pairRepo.findAllByProviderCode(providerCode)); }  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 testGetAllFromProvider() { List<Pair> result = pairService.getAllFromProvider(YAHOO); assertThat(result).extracting("symbol").containsExactlyInAnyOrder("UBI.PA", "GFT.PA", "RR.L"); }