String fileLocation = "src/test/resources/xml_portfolios/listed_index_future_option.xml";
File file = new File(fileLocation);
new PortfolioLoader(_toolContext, "guff", null, file.getAbsolutePath(), true, false, false, false, true, true, null).execute();
assertEquals(_portfolioMaster.search(new PortfolioSearchRequest()).getPortfolios().size(), 1);
List<ManageablePosition> positions = _positionMaster.search(new PositionSearchRequest()).getPositions();
assertEquals(positions.size(), 1);
ManageablePosition position = positions.get(0);
List<ManageableTrade> trades = position.getTrades();
assertEquals(trades.size(), 1);