@Test
void nothingRecommendedDueToRatingOverinvested() {

    final ParsedStrategy p = new ParsedStrategy(DefaultPortfolio.EMPTY);
    final PurchaseStrategy s = new NaturalLanguagePurchaseStrategy(p);
    final PortfolioOverview portfolio = mock(PortfolioOverview.class);
    when(portfolio.getInvested()).thenReturn(p.getMaximumInvestmentSize()
        .subtract(1));
    when(portfolio.getShareOnInvestment(any())).thenReturn(Ratio.ZERO);
    final Participation l = mockParticipation();
    doReturn(Rating.A).when(l)
        .getRating();
    final Stream<RecommendedParticipation> result = s.recommend(Collections.singletonList(mockDescriptor(l)),
            portfolio, mockSessionInfo());
    assertThat(result).isEmpty();
}