@Test
public void isPresentNTimesOrLessSuccess() {

    when(browser.findPageWithNumberOfOccurrences(any(), eq(5), eq(orLess))).thenReturn(mock(WebElement.class));
    assertThat(span.inside(div), CustomMatchers.isPresent(5).timesOrLessIn(browser));
}