.property( "id", ElementType.FIELD ).documentId()
.property( "title", ElementType.FIELD ).field()
;
cfg.setProgrammaticMapping( mapping );
cfg.addClass( Document.class );
MutableSearchFactory sf = (MutableSearchFactory) new SearchFactoryBuilder().configuration( cfg ).buildSearchFactory();
try {
assertEquals( expectation, extractWorkspace( sf, Document.class ).areSingleTermDeletesSafe() );
// trigger a SearchFactory rebuild:
sf.addClasses( Dvd.class, Book.class );