@Test
public void testTrueAndParameter() throws Exception {

   QueryDef query = new QueryDef("test", UserEntity.class, QueryType.SELECT,
         "<IF type='NOT_NULL' field='key-user-id'>${key-user-id}</IF>");
   User user = new User();
   QueryContext ctx = getSelectContext(query, user, null);
   user.setKeyUserId(1234L);
   Assert.assertEquals(false, ctx.isWithinIfToken());
   m_queryResolver.resolve(ctx);
   Assert.assertEquals("?", ctx.getSqlStatement());
   Assert.assertEquals(false, ctx.isWithinIfToken());
   Assert.assertEquals(1, ctx.getParameters().size());
   Assert.assertEquals(1234L, getParameterValue(ctx, 0));
}