StrategyProvider implements ReloadListener<String> { public static StrategyProvider empty() { return new StrategyProvider(); } StrategyProvider(final String strategyLocation);   StrategyProvider(); static StrategyProvider createFor(final String strategyLocation); static StrategyProvider empty(); @Override void newValue(final String newValue); @Override void valueUnset(); Optional<InvestmentStrategy> getToInvest(); Optional<SellStrategy> getToSell(); Optional<PurchaseStrategy> getToPurchase(); Optional<ReservationStrategy> getForReservations();  }
@Test void empty() { final StrategyProvider r = StrategyProvider.empty(); assertSoftly(softly -> { softly.assertThat(r.getToInvest()) .isEmpty(); softly.assertThat(r.getToPurchase()) .isEmpty(); softly.assertThat(r.getToSell()) .isEmpty(); softly.assertThat(r.getForReservations()) .isEmpty(); }); }