// We should get a position automatically generated for the trade
String fileLocation = "src/test/resources/xml_portfolios/otc_equity_index_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);
assertEquals(Iterables.getOnlyElement(positions.get(0).getTrades()).getQuantity(), new BigDecimal(250000));
assertEquals(_securityMaster.search(new SecuritySearchRequest()).getSecurities().size(), 1);