@Test
public void testInEmptyArrayParameter() throws Exception {

   QueryDef query = new QueryDef("test", UserEntity.class, QueryType.SELECT, "<IN>${user-id-array}</IN>");
   User user = new User();
   QueryContext ctx = getSelectContext(query, user, null);
   user.setUserIdArray(new long[0]);
   Assert.assertEquals(false, ctx.isWithinInToken());
   m_queryResolver.resolve(ctx);
   Assert.assertEquals("(null)", ctx.getSqlStatement());
   Assert.assertEquals(0, ctx.getParameters().size());
   Assert.assertEquals(false, ctx.isWithinInToken());
}