@Test
void relativeExact() {

    final RangeCondition<Ratio> c = RangeCondition.relativeExact(Wrapper::getRemainingTermInMonths,
            Wrapper::getOriginalTermInMonths,
            Ratio.fromPercentage(15), Ratio.fromPercentage(15));
    final Wrapper<?> w = mock(Wrapper.class);
    when(w.getOriginalTermInMonths()).thenReturn(100);
    when(w.getRemainingTermInMonths()).thenReturn(15);
    assertThat(c).accepts(w);
    when(w.getRemainingTermInMonths()).thenReturn(14);
    assertThat(c).rejects(w);
    when(w.getRemainingTermInMonths()).thenReturn(16);
    assertThat(c).rejects(w);
}