@Test
public void closeTradeTest() throws Exception {

	OandaTradeManagementProvider service = new OandaTradeManagementProvider(OandaTestConstants.url,
			OandaTestConstants.accessToken);
	assertEquals("https://api-fxtrade.oanda.com/v1/accounts/123456/trades/1800805337", service
			.getTradeForAccountUrl(OandaTestConstants.tradeId, OandaTestConstants.accountId));
	OandaTradeManagementProvider spy = doMockStuff("src/test/resources/tradesForAccount123456.txt", service);
	boolean success = spy.closeTrade(OandaTestConstants.tradeId, OandaTestConstants.accountId);
	assertTrue(success);
	verify(spy.getHttpClient(), times(1)).execute(any(HttpDelete.class));
}