@Test
public void testSerialization()
throws JsonGenerationException, JsonMappingException, IOException {
Position cashPosition = new Position();
cashPosition.setCashPosition(ACCOUNT_ID, ACCOUNT_NAME, CASH_IN_ACCOUNT);
Position instrumentPosition = new Position();
instrumentPosition.setInstrumentPosition(
ACCOUNT_ID, ACCOUNT_NAME, INS_SYMBOL, INS_NAME, INS_LAST_TRADE);
Position lotPosition = new Position();
lotPosition.setLotPosition(
ACCOUNT_ID, ACCOUNT_NAME, INS_SYMBOL, INS_NAME, LOT_ID,
LOT_CREATION_TIME, LOT_QUANTITY, INS_LAST_TRADE, LOT_PRICE_PAID);
instrumentPosition.addChild(lotPosition);
instrumentPosition.calculateInstrumentPosition();