### Question:
AccountSpiImpl implements AccountSpi { boolean dateIsInDateRange(LocalDate date, LocalDate from, LocalDate to) { return date == null || date.isAfter(from) && date.isBefore(to) || date.isEqual(from) || date.isEqual(to); } AccountSpiImpl(TestDataService testDataService, TestDataMapper testDataMapper); @Override SpiResponse<List<SpiAccountDetails>> requestAccountList(
      @NotNull SpiContextData ctx,
      boolean withBalance,
      @NotNull SpiAccountConsent spiAccountConsent,
      @NotNull SpiAspspConsentDataProvider spiAspspConsentDataProvider); @Override SpiResponse<SpiAccountDetails> requestAccountDetailForAccount(
      @NotNull SpiContextData ctx,
      boolean withBalance,
      @NotNull SpiAccountReference spiAccountReference,
      @NotNull SpiAccountConsent spiAccountConsent,
      @NotNull SpiAspspConsentDataProvider spiAspspConsentDataProvider); @Override SpiResponse<SpiTransactionReport> requestTransactionsForAccount(
      @NotNull SpiContextData spiContextData,
      String acceptHeader,
      boolean withBalance,
      @NotNull LocalDate dateFrom,
      @NotNull LocalDate dateTo,
      @NotNull BookingStatus bookingStatus,
      @NotNull SpiAccountReference spiAccountReference,
      @NotNull SpiAccountConsent spiAccountConsent,
      @NotNull SpiAspspConsentDataProvider spiAspspConsentDataProvider); @Override SpiResponse<SpiTransaction> requestTransactionForAccountByTransactionId(
      @NotNull SpiContextData ctx,
      @NotNull String transactionId,
      @NotNull SpiAccountReference spiAccountReference,
      @NotNull SpiAccountConsent spiAccountConsent,
      @NotNull SpiAspspConsentDataProvider spiAspspConsentDataProvider); @Override SpiResponse<List<SpiAccountBalance>> requestBalancesForAccount(
      @NotNull SpiContextData ctx,
      @NotNull SpiAccountReference spiAccountReference,
      @NotNull SpiAccountConsent spiAccountConsent,
      @NotNull SpiAspspConsentDataProvider spiAspspConsentDataProvider);  }### Answer:
@Test public void dateIsInDateRange() { LocalDate date = LocalDate.of(2019, 4, 3); assertTrue(accountSpi.dateIsInDateRange(date, dateFrom, dateTo)); }
@Test public void dateFromIsInRange() { assertTrue(accountSpi.dateIsInDateRange(dateFrom, dateFrom, dateTo)); }
@Test public void dateToIsInRange() { assertTrue(accountSpi.dateIsInDateRange(dateTo, dateFrom, dateTo)); }
@Test public void dateIsNotInRange() { LocalDate date = LocalDate.of(2019, 1, 16); assertFalse(accountSpi.dateIsInDateRange(date, dateFrom, dateTo)); }