serializationProvider,
searchFactoryHolder.getSearchFactory()
);
List<LuceneWork> works = buildWorks();
byte[] bytes = converter.toSerializedModel( works );
List<LuceneWork> copyOfWorks = converter.toLuceneWorks( bytes );
assertThat( copyOfWorks ).hasSize( works.size() );
for ( int index = 0; index < works.size(); index++ ) {
AvroTestHelpers.assertLuceneWork( works.get( index ), copyOfWorks.get( index ) );