Query q2 = session.getKieBase().getQuery( "org.drools.tms.test", "bar" );
assertNotNull( q1 );
assertNotNull( q2 );
QueryResults q10res = session.getQueryResults( "foo", "foo" );
QueryResults q11res = session.getQueryResults( "foo", "foo", Variable.v );
QueryResults q20res = session.getQueryResults( "bar", "foo", Variable.v );
assertEquals( 1, q10res.size() );
assertEquals( 1, q11res.size() );
assertEquals( 1, q20res.size() );
QueryResultsRow row10 = q10res.iterator().next();
QueryResultsRow row11 = q11res.iterator().next();
QueryResultsRow row20 = q20res.iterator().next();
assertEquals( "foo", row10.get( "$s" ) );
assertEquals( "foo", row11.get( "$s" ) );
assertEquals( "foo", row20.get( "$s" ) );