HSEARCH-642 Adding test for expected behaviour

Improving javadocs for EntityIndexingInterceptor