### Question:
LoanAnnuityCondition extends AbstractRangeCondition<Integer> { public static LoanAnnuityCondition exact(final int minimumThreshold, final int maximumThreshold) { final RangeCondition<Integer> c = RangeCondition.exact(Wrapper::getOriginalAnnuity, AMOUNT_DOMAIN, minimumThreshold, maximumThreshold); return new LoanAnnuityCondition(c); } private  LoanAnnuityCondition(final RangeCondition<Integer> condition); static LoanAnnuityCondition lessThan(final int threshold); static LoanAnnuityCondition moreThan(final int threshold); static LoanAnnuityCondition exact(final int minimumThreshold, final int maximumThreshold);  }### Answer:
@Test void exact() { final MarketplaceFilterCondition condition = LoanAnnuityCondition.exact(0, 1); final Wrapper<?> w = mock(Wrapper.class); when(w.getOriginalAnnuity()).thenReturn(0); assertThat(condition).accepts(w); when(w.getOriginalAnnuity()).thenReturn(1); assertThat(condition).accepts(w); when(w.getOriginalAnnuity()).thenReturn(2); assertThat(condition).rejects(w); }