assertEquals( "incorrect entity returned, wrong branch", "Layton", ( (Department) result.get( 0 ) ).getBranch() );
assertEquals( "incorrect number of results returned", 1, result.size() );
// Partial match.
query = parser.parse( "branchnetwork:3c" );
hibQuery = session.createFullTextQuery( query, Department.class );
result = hibQuery.list();
assertNotNull( result );
assertEquals( "incorrect entity returned, wrong network", "3C", ( (Department) result.get( 0 ) ).getNetwork() );
assertEquals( "incorrect entity returned, wrong branch", "West Valley", ( (Department) result.get( 0 ) ).getBranch() );
assertEquals( "incorrect number of results returned", 1, result.size() );