@Test
public void visitLimitOptionAndSortOption() {

    // test
    final LimitOption limitOption = SearchModelFactory.newLimitOption(KNOWN_SKIP, KNOWN_LIMIT);
    SortOption sortOption = SearchModelFactory.newSortOption(Collections.emptyList());
    sortOption = sortOption.add(POINTER_1, SortOptionEntry.SortOrder.ASC);
    // test
    visitor.visitAll(Arrays.asList(limitOption, sortOption));
    // verify
    verify(qbMock).skip(KNOWN_SKIP);
    verify(qbMock).limit(KNOWN_LIMIT);
    verify(exprFactoryMock).sortBy(POINTER_1.toString());
    verify(qbMock).sort(
            Collections.singletonList(new org.eclipse.ditto.model.query.SortOption(exprMock,
                    SortDirection.ASC)));
}