@Test
public void testAttribute() throws Exception {

   QueryDef query = new QueryDef("test", UserEntity.class, QueryType.SELECT, "${user-id}");
   Readset<?> readset = UserEntity.READSET_FULL;
   User user = new User();
   QueryContext ctx = getSelectContext(query, user, readset);
   user.setUserId(1234L);
   m_queryResolver.resolve(ctx);
   Assert.assertEquals("?", ctx.getSqlStatement());
   Assert.assertEquals(1234L, getParameterValue(ctx, 0));
}