@Test
@SuppressWarnings("unchecked")
public void modifyOrderTest() throws Exception {

	OandaOrderManagementProvider service = new OandaOrderManagementProvider(OandaTestConstants.url,
			OandaTestConstants.accessToken, null);
	OandaOrderManagementProvider spy = doMockStuff("src/test/resources/orderForAccount123456.txt", service);
	Order<String, Long> order = mock(Order.class);
	when(order.getTakeProfit()).thenReturn(119.45);
	when(order.getStopLoss()).thenReturn(124.75);
	when(order.getUnits()).thenReturn(1000l);
	when(order.getPrice()).thenReturn(122.0);
	when(order.getOrderId()).thenReturn(OandaTestConstants.orderId);
	spy.modifyOrder(order, OandaTestConstants.accountId);
	verify(spy, times(1)).createPatchCommand(order, OandaTestConstants.accountId);
	verify(order, times(1)).getOrderId();
	verify(order, times(1)).getTakeProfit();
	verify(order, times(1)).getStopLoss();
	verify(order, times(1)).getPrice();
}