@Test
public void fromToUrlTest() {

	OandaHistoricMarketDataProvider service = new OandaHistoricMarketDataProvider(OandaTestConstants.url,
			OandaTestConstants.accessToken);
	String url = service.getFromToUrl(new TradeableInstrument<String>("CHF_JPY"), CandleStickGranularity.S5,
			new DateTime(1442950140000L), new DateTime(1442960940000L));
	assertEquals(
			"https://api-fxtrade.oanda.com/v1/candles?instrument=CHF_JPY&candleFormat=midpoint&granularity=S5&dailyAlignment=0&alignmentTimezone=GMT&start=1442950140000000&end=1442960940000000",
			url);
}