//-------------------------------------------------------------------------
        public virtual void test_summarize()
        {
            Position             trade    = sut();
            PortfolioItemSummary expected = PortfolioItemSummary.builder().portfolioItemType(PortfolioItemType.POSITION).productType(ProductType.SECURITY).description("B x 123").build();

            assertEquals(trade.summarize(), expected);
        }
        //-------------------------------------------------------------------------
        public virtual void test_summarize()
        {
            SecurityTrade        trade    = sut();
            PortfolioItemSummary expected = PortfolioItemSummary.builder().portfolioItemType(PortfolioItemType.TRADE).productType(ProductType.SECURITY).description("Id x 100").build();

            assertEquals(trade.summarize(), expected);
        }
        //-------------------------------------------------------------------------
        public virtual void test_summarize()
        {
            GenericSecurityPosition trade    = sut();
            PortfolioItemSummary    expected = PortfolioItemSummary.builder().id(POSITION_INFO.Id.orElse(null)).portfolioItemType(PortfolioItemType.POSITION).productType(ProductType.SECURITY).currencies(SECURITY.Currency).description("1 x 100").build();

            assertEquals(trade.summarize(), expected);
        }
        //-------------------------------------------------------------------------
        public virtual void test_summarize()
        {
            Trade trade = sut();
            PortfolioItemSummary expected = PortfolioItemSummary.builder().portfolioItemType(PortfolioItemType.TRADE).productType(ProductType.OTHER).description("Unknown: MockTrade").build();

            assertEquals(trade.summarize(), expected);
        }
 internal static PortfolioItemSummary sut2()
 {
     return(PortfolioItemSummary.builder().portfolioItemType(PortfolioItemType.TRADE).productType(ProductType.FRA).currencies(Currency.USD).description("Two").build());
 }
 //-------------------------------------------------------------------------
 internal static PortfolioItemSummary sut()
 {
     return(PortfolioItemSummary.builder().id(STANDARD_ID).portfolioItemType(PortfolioItemType.POSITION).productType(ProductType.SECURITY).currencies(Currency.GBP).description("One").build());
 }