PairService { public Pair getForCodeAndProvider(String code, String provider) { return pairMapper.mapToPair(pairRepo.findBySymbolAndProviderCode(code, provider)); }  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 testGetForCodeAndProvider() { Pair result = pairService.getForCodeAndProvider("UBI.PA", YAHOO); assertThat(result.getSymbol()).isEqualTo("UBI.PA"); assertThat(result.getName()).isEqualTo("Ubisoft Entertainment SA"); assertThat(result.getSource().getCode()).isEqualTo("UBI"); assertThat(result.getTarget().getCode()).isEqualTo("EUR"); assertThat(result.getProviderCode()).isEqualTo(YAHOO); }