@Test
void exact() {

    final MarketplaceFilterCondition condition = RemainingPrincipalCondition.exact(0, 1);
    final Wrapper<?> w = mock(Wrapper.class);
    when(w.getRemainingPrincipal()).thenReturn(BigDecimal.ZERO);
    assertThat(condition).accepts(w);
    when(w.getRemainingPrincipal()).thenReturn(BigDecimal.ONE);
    assertThat(condition).accepts(w);
    when(w.getRemainingPrincipal()).thenReturn(BigDecimal.TEN);
    assertThat(condition).rejects(w);
}