@Test
void noLoansApplicable() {

    final MarketplaceFilter filter = MarketplaceFilter.of(MarketplaceFilterCondition.alwaysAccepting());
    final DefaultValues v = new DefaultValues(DefaultPortfolio.PROGRESSIVE);
    final FilterSupplier w = new FilterSupplier(v, Collections.emptySet(), Collections.singleton(filter));
    final ParsedStrategy p = new ParsedStrategy(v, Collections.emptySet(), Collections.emptyMap(),
            Collections.emptyMap(), w);
    final PurchaseStrategy s = new NaturalLanguagePurchaseStrategy(p);
    final PortfolioOverview portfolio = mock(PortfolioOverview.class);
    when(portfolio.getShareOnInvestment(any())).thenReturn(Ratio.ZERO);
    when(portfolio.getInvested()).thenReturn(p.getMaximumInvestmentSize()
        .subtract(1));
    final Stream<RecommendedParticipation> result = s.recommend(Collections.singletonList(mockDescriptor()),
            portfolio, mockSessionInfo());
    assertThat(result).isEmpty();
}