@Test
public void testInArrayParameter() 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);
   long[] userIdArray = new long[] { 1L, 2L, 3L, 4L };
   user.setUserIdArray(userIdArray);
   Assert.assertEquals(false, ctx.isWithinInToken());
   m_queryResolver.resolve(ctx);
   Assert.assertEquals("(?,?,?,?)", ctx.getSqlStatement());
   Assert.assertEquals(1, ctx.getParameters().size());
   Assert.assertEquals(userIdArray, getParameterValue(ctx, 0));
   Assert.assertEquals(false, ctx.isWithinInToken());
}