verifyMatchExistsWithName( "name", "name" );
Session session = openSession();
FullTextSession fullTextSession = Search.getFullTextSession( session );
MassIndexer massIndexer = fullTextSession.createIndexer( Root.class );
massIndexer.startAndWait();
verifyMatchExistsWithName( "name", "name" );
}
private void verifyMatchExistsWithName(String fieldName, String fieldValue) {
FullTextSession fullTextSession = Search.getFullTextSession( openSession() );