@Test
public void testFindRecordsWithTypeFilter() throws Exception {

    // Setup:
    int limit = 1000;
    int offset = 0;
    PaginatedSearchParams versionedSearchParams = new PaginatedSearchParams.Builder().limit(limit).offset(offset).typeFilter(versionedRecordFactory.getTypeIRI()).build();
    PaginatedSearchParams unversionedSearchParams = new PaginatedSearchParams.Builder().limit(limit).offset(offset).typeFilter(unversionedRecordFactory.getTypeIRI()).build();
    PaginatedSearchParams fullSearchParams = new PaginatedSearchParams.Builder().limit(limit).offset(offset).build();
    // when
    PaginatedSearchResults<Record> versionedRecords = manager.findRecord(distributedCatalogId, versionedSearchParams);
    PaginatedSearchResults<Record> unversionedRecords = manager.findRecord(distributedCatalogId, unversionedSearchParams);
    PaginatedSearchResults<Record> fullRecords = manager.findRecord(distributedCatalogId, fullSearchParams);
    // then
    assertTrue(true);
    assertEquals(6, versionedRecords.getPage().size());
    assertEquals(6, versionedRecords.getTotalSize());
    assertEquals(2, unversionedRecords.getPage().size());
    assertEquals(2, unversionedRecords.getTotalSize());
    assertEquals(TOTAL_SIZE, fullRecords.getPage().size());
    assertEquals(TOTAL_SIZE, fullRecords.getTotalSize());
}