em.getTransaction().begin();
QueryParser parser = new QueryParser( getTargetLuceneVersion(), "title", TestConstants.stopAnalyzer );
Query query = parser.parse( "saltQty:noword" );
assertEquals( 0, em.createFullTextQuery( query ).getResultList().size() );
query = new TermQuery( new Term( "saltQty", "23" ) );
assertEquals( "getResultList", 1, em.createFullTextQuery( query ).getResultList().size() );
assertEquals(
"getSingleResult and object retrieval", 23,
( (Bretzel) em.createFullTextQuery( query ).getSingleResult() ).getSaltQty()
);
assertEquals( 1, em.createFullTextQuery( query ).getResultSize() );