@Test
public void testUpdateWithFieldUsed() throws Exception {

   QueryDef query = new QueryDef("test", UserEntity.class, QueryType.UPDATE, "<fields/>");
   Updateset<User> updateset = UserEntity.UPDATESET_FULL;
   User user = new User();
   QueryContext ctx = getUpdateContext(query, user, updateset);
   user.setUserName("test");
   m_queryResolver.resolve(ctx);
   Assert.assertEquals("full_name=?,last_modified_date=NOW()", ctx.getSqlStatement());
   Assert.assertEquals(1, ctx.getParameters().size());
   Assert.assertEquals("test", getParameterValue(ctx, 0));
}