assertEquals("JSON (buy & sell)", "{operationDate:'', id: 5, label: 'Investment', buy: '10,00 €', sell: '1,50 €', interest: '', gainLoss: '5,00 €', pctg: '50%', quantity: '9', price: '1,50 €', operations: [{id: 999914, label: '', buy: '10,00 €', sell: '', interest: '', quantity: '10', price: '1,00 €', gainLoss: '', pctg: '', quant: 10.0, operationDate: '2000-11-20'},{id: 999915, label: '', buy: '', sell: '1,50 €', interest: '', quantity: '1', price: '1,50 €', gainLoss: '', pctg: '', quant: 1.0, operationDate: '2000-11-21'}], quant: 9.0}", investmentStatus.getAsJSONString());
Investment amountedInvestment = new Investment();
amountedInvestment.setName("Investment (amount)");
amountedInvestment.setOwner(account.getOwner());
amountedInvestment.setProductType("deposit");
amountedInvestment.persist();
InvestmentStatus amountedInvestmentStatus = new InvestmentStatus(account, amountedInvestment);
InvestmentTransaction amountedInvestmentTransaction = new InvestmentTransaction();
amountedInvestmentTransaction.setId(26L);
amountedInvestmentTransaction.setQuantity(0D);
amountedInvestmentTransaction.setInvestment(amountedInvestment);