content: package com.alexstyl.specialdates.events.bankholidays;
  
  //@RunWith(MockitoJUnitRunner.class)
  public class BankHolidayProviderTest {
  //    private static final Date GREEK_INDEPENDENCE_DAY = Date.on(25, MARCH, 1990);
  //
  //    private OrthodoxEasterCalculator calculator;
  //    private BankHolidayProvider repository;
  //
  //    @Before
  //    public void setUp() throws Exception {
  //        repository = new BankHolidayProvider(new GreekBankHolidaysCalculator(OrthodoxEasterCalculator.INSTANCE));
  ////        when(calculator.calculateEasterForYear(1990)).thenReturn(Date.on(1, JANUARY, 1990));
  ////        when(calculator.calculateEasterForYear(1991)).thenReturn(Date.on(1, JANUARY, 1991));
  //    }
  //
  //    @Test
  //    public void whenCheckingForSameYearTwice_thenEasterIsCalculatedOnlyOnce() {
  //        repository.getBankHolidayFor(aDateInYear(1990));
  //        repository.getBankHolidayFor(aDateInYear(1990));
  //        verify(calculator, times(1)).calculateEasterForYear(1990);
  //    }
  //
  //    @Test
  //    public void whenCheckingForDifferentYearthenEasterIsRecalculated() {
  //        repository.getBankHolidayFor(aDateInYear(1990));
  //        repository.getBankHolidayFor(aDateInYear(1991));
  //        verify(calculator, times(1)).calculateEasterForYear(1990);
  //        verify(calculator, times(1)).calculateEasterForYear(1991);
  //    }
  //
  //    @Test
  //    public void testThatAGreekKnownBankholidayIsCalculatedProperly() {
  //        Date date = GREEK_INDEPENDENCE_DAY;
  //        Optional<BankHoliday> bankHoliday = repository.getBankHolidayFor(date);
  //        assertThat(bankHoliday.get().getDate()).isEqualTo(Date.on(25, MARCH, 1990));
  //    }
  //
  //    private Date aDateInYear(int year) {
  //        return Date.on(1, JANUARY, year);
  //    }
  }
  