@Test
public void testUpdateRates() {

	// given
	List<Quote> quotes = getBrentQuotes();
	HistoricalRate expected1 = new HistoricalRate(BRE, USD, new BigDecimal("55.18"), parse("2015-04-02T02:00:00"));
	HistoricalRate expected2 = new HistoricalRate(BRE, USD, new BigDecimal("56.72"), parse("2015-04-03T02:00:00"));
	HistoricalRate expected3 = new HistoricalRate(BRE, USD, new BigDecimal("55.18"), parse("2015-04-07T02:00:00"));
	HistoricalRate expected4 = new HistoricalRate(BRE, USD, new BigDecimal("57.8"), parse("2015-04-08T02:00:00"));
	HistoricalRate expected5 = new HistoricalRate(BRE, USD, new BigDecimal("58.3"), parse("2015-04-09T02:00:00"));
	LatestRate expected6 = new LatestRate(BRE, USD, new BigDecimal("58.3"), parse("2015-04-09T02:00:00"));
	// when
	rateUpdaterService.updateRates(quotes);
	// then
	List<HistoricalRate> hRates = new ArrayList<>(histoRepo.findAll());
	List<LatestRate> lRates = new ArrayList<>(latestRepo.findAll());
	assertThat(hRates).containsExactlyInAnyOrder(expected1, expected2, expected3, expected4, expected5);
	assertThat(lRates).containsExactly(expected6);
	verify(activeMQConfig).send(any());
}