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