assertNotNull(trade2.getUniqueId());
PositionSearchRequest requestByTrade = new PositionSearchRequest();
requestByTrade.addTradeObjectId(trade1.getUniqueId().getObjectId());
PositionSearchResult test = _posMaster.search(requestByTrade);
assertEquals(1, test.getDocuments().size());
assertEquals(doc, test.getDocuments().get(0));
PositionSearchRequest requestByPosition = new PositionSearchRequest();
requestByPosition.addPositionObjectId(position.getUniqueId().getObjectId());
test = _posMaster.search(requestByTrade);
assertEquals(1, test.getDocuments().size());
assertEquals(doc, test.getDocuments().get(0));
}