@Test
public void concurrentDeserialization() throws Exception {
final LuceneWorkSerializer serializer = extractSerializer();
final byte[] serializedModel = serializer.toSerializedModel( SerializationTest.buildWorks() );
final ConcurrentRunner runner = new ConcurrentRunner( new TaskFactory() {
@Override
public Runnable createRunnable(int i) throws Exception {
return new DeserializingThread( serializer, serializedModel );
}
});
runner.execute();
}