@Test
void feeBasedInvestmentsNotApplicableInSelloffStrategy() {

    final DefaultValues v = new DefaultValues(DefaultPortfolio.PROGRESSIVE);
    v.setSellingMode(SellingMode.FREE_AND_OUTSIDE_STRATEGY);
    final ParsedStrategy p = spy(new ParsedStrategy(v));
    doAnswer(e -> e.getArgument(0)).when(p)
        .getMatchingPrimaryMarketplaceFilters(any(), any());
    final SellStrategy s = new NaturalLanguageSellStrategy(p);
    final PortfolioOverview portfolio = mock(PortfolioOverview.class);
    final Investment i1 = mockInvestment();
    final Investment i2 = mockInvestment(BigDecimal.ZERO);
    final Stream<RecommendedInvestment> result = s.recommend(asList(mockDescriptor(i1), mockDescriptor(i2)),
            portfolio, mockSessionInfo());
    assertThat(result).extracting(d -> d.descriptor()
        .item())
        .containsOnly(i2);
}