### Question:
WorkingDaysToDaysConverter { public boolean isGermanHoliday(LocalDate date) { if (GERMAN_HOLIDAYS.contains(CustomHoliday.of(date.getDayOfMonth(), date.getMonthValue()))) { return true; } long diffFromEasterSunday = DAYS.between(easterCalculator.getEasterSunday(date.getYear()), date); Builder builder = LongStream.builder() .add(OFFSET_GOOD_FRIDAY) .add(OFFSET_EASTER_MONDAY) .add(OFFSET_ASCENSION_DAY) .add(OFFSET_WHIT_MONDAY); if (corpusChristiEnabled) { builder.add(OFFSET_CORPUS_CHRISTI); } return builder.build().anyMatch(c -> c == diffFromEasterSunday); } WorkingDaysToDaysConverter(boolean germanHolidaysEnabled, boolean corpusChristiEnabled);  WorkingDaysToDaysConverter(
      boolean germanHolidaysEnabled,
      boolean corpusChristiEnabled,
      Collection<CustomHoliday> customHolidays); Instant addWorkingDaysToInstant(Instant instant, Duration workingDays); Instant subtractWorkingDaysFromInstant(Instant instant, Duration workingDays); boolean hasWorkingDaysInBetween(Instant left, Instant right); boolean isWorkingDay(Instant referenceDate); boolean isWeekend(LocalDate dateToCheck); boolean isHoliday(LocalDate date); boolean isGermanHoliday(LocalDate date); @Override String toString();  }### Answer:
@TestFactory Stream<DynamicTest> should_NotDetectCorpusChristiAsHoliday_When_CorpusChristiIsDisabled() { DynamicTest year1980 = DynamicTest.dynamicTest( "year 1980", () -> assertThat(converter.isGermanHoliday(LocalDate.parse("1980-06-05"))).isFalse()); DynamicTest year2020 = DynamicTest.dynamicTest( "year 2020", () -> assertThat(converter.isGermanHoliday(LocalDate.parse("2020-06-11"))).isFalse()); return Stream.of(year1980, year2020); }
@TestFactory Stream<DynamicNode> should_DetectCorpusChristiAsHoliday_When_CorpusChristiIsEnabled() { WorkingDaysToDaysConverter converter = new WorkingDaysToDaysConverter(true, true); DynamicTest year1980 = DynamicTest.dynamicTest( "year 1980", () -> assertThat(converter.isGermanHoliday(LocalDate.parse("1980-06-05"))).isTrue()); DynamicTest year2020 = DynamicTest.dynamicTest( "year 2020", () -> assertThat(converter.isGermanHoliday(LocalDate.parse("2020-06-11"))).isTrue()); return Stream.of(year1980, year2020); }