@Test
public void testGetRates() throws Exception {

	server.expect(anything()).andRespond(withSuccess(LATEST, MediaType.APPLICATION_JSON));
	
	Quote expectedUbisoftRate = new Quote("UBI", EUR, new BigDecimal("57.52"), parse("2017-09-08T17:35:14+02:00"));
	Quote expectedLitecoinRate = new Quote("LTC", USD, new BigDecimal("67.29928"), parse("2017-09-10T15:19:23+02:00"));
	
	var symbols = List.of(
	new Pair().setSymbol("UBI.PA").setName("Ubi").setSource(new Symbol().setCode("UBI")).setTarget(new Symbol().setCode(EUR)).setProviderCode("YAHOO"),
	new Pair().setSymbol("LTCUSD=X").setName("Litecoin").setSource(new Symbol().setCode("LTC")).setTarget(new Symbol().setCode(USD)).setProviderCode("YAHOO")
	);
	
	when(pairService.getAllFromProvider(ArgumentMatchers.anyString())).thenReturn(symbols);
	List<Quote> result = yahooStock.getRates();
	assertThat(result).containsOnlyOnce(expectedLitecoinRate, expectedUbisoftRate);
}