@Test
public void modifyTradeTest() throws Exception {

	OandaTradeManagementProvider service = new OandaTradeManagementProvider(OandaTestConstants.url,
			OandaTestConstants.accessToken);
	final long tradeId = OandaTestConstants.tradeId;
	assertEquals("https://api-fxtrade.oanda.com/v1/accounts/123456/trades/1800805337", service
			.getTradeForAccountUrl(tradeId, OandaTestConstants.accountId));
	OandaTradeManagementProvider spy = doMockStuff("src/test/resources/tradesForAccount123456.txt", service);
	final double stopLoss = 150.0;
	final double takeProfit = 110.0;
	spy.modifyTrade(OandaTestConstants.accountId, tradeId, stopLoss, takeProfit);
	verify(spy, times(1)).createPatchCommand(OandaTestConstants.accountId, tradeId, stopLoss, takeProfit);
}