@Test
public void testFindRecordsWithSearchText() throws Exception {

    // given
    int limit = 10;
    int offset = 0;
    PaginatedSearchParams searchParams = new PaginatedSearchParams.Builder().limit(limit).offset(offset).searchText("Unversioned").build();
    // when
    PaginatedSearchResults<Record> records = manager.findRecord(distributedCatalogId, searchParams);
    // then
    assertEquals(2, records.getPage().size());
    assertEquals(2, records.getTotalSize());
    assertEquals(10, records.getPageSize());
    assertEquals(1, records.getPageNumber());
}