@Sql("/sql/insert_histo.sql")
@Test
public void testAddHistoricalRates() {

	// given
	List<Quote> quotes = new ArrayList<>();
	quotes.add(new Quote(BRE, USD, new BigDecimal("58.3"), parse("2015-04-09T02:00:00")));
	quotes.add(new Quote(BRE, USD, new BigDecimal("57.8"), parse("2015-04-08T02:00:00")));
	quotes.add(new Quote(BRE, USD, new BigDecimal("55.18"), parse("2015-04-07T02:00:00")));
	quotes.add(new Quote(BRE, USD, new BigDecimal("56.72"), parse("2015-04-03T02:00:00")));
	quotes.add(new Quote(BRE, USD, new BigDecimal("55.18"), parse("2015-04-02T02:00:00")));
	// when
	rateService.addHistoricalRates(quotes);
	// then
	assertThat(histoRepo.findAll()).hasSize(5);
}