List<LuceneWork> processedQueue = LeakingLuceneBackend.getLastProcessedQueue();
assertTrue( processedQueue.size() == 1 );
AddLuceneWork addLuceneWork = (AddLuceneWork) processedQueue.get( 0 );
Document doc = addLuceneWork.getDocument();
IndexableField implicitNormField = doc.getField( "withNormsImplicit" );
assertFalse( "norms should be stored for this field", implicitNormField.fieldType().omitNorms() );
IndexableField explicitNormField = doc.getField( "withNormsExplicit" );
assertFalse( "norms should be stored for this field", explicitNormField.fieldType().omitNorms() );
IndexableField withoutNormField = doc.getField( "withoutNorms" );
assertTrue( "norms should not be stored for this field", withoutNormField.fieldType().omitNorms() );
}