q = s.getNamedQuery( "night.moreRecentThan" );
q.setDate( "date", inAMonth );
assertEquals( 0, q.list().size() );
Statistics stats = getSessions().getStatistics();
stats.setStatisticsEnabled( true );
stats.clear();
q = s.getNamedQuery( "night.duration" );
q.setParameter( "duration", 14l );
assertEquals( 1, q.list().size() );
assertEquals( 1, stats.getQueryCachePutCount() );
q = s.getNamedQuery( "night.duration" );