@Test
public void testPrimitiveBoxedType() {
Date d = new Date();
MockQueryBuilder qb = new MockQueryBuilder();
BaseSelectQuery<BoxedPrimitiveDomain> bpd = new GenericSelectQuery<BoxedPrimitiveDomain, Object>(qb, BoxedPrimitiveDomain.class);
BoxedPrimitiveDomain pd = bpd.target();
bpd.eq(pd.getAtomicBoolean(), new AtomicBoolean(false));
bpd.eq(pd.getAtomicLong(), new AtomicLong(0));
bpd.eq(pd.getAtomicInteger(), new AtomicInteger(0));
bpd.eq(pd.getBool(), new Boolean(false));
bpd.eq(pd.getBigDecimal(), new BigDecimal(0));
bpd.eq(pd.getBigInteger(), new BigInteger("0"));
bpd.eq(pd.getInte(), new Integer(0));
bpd.eq(pd.getLonge(), new Long(0));
bpd.eq(pd.getBytee(), new Byte((byte) 0));
bpd.eq(pd.getChare(), new Character('A'));
bpd.eq(pd.getDoublee(), new Double(0));
bpd.eq(pd.getFloate(), new Float(0));
bpd.eq(pd.getShorte(), new Short((short) 0));
bpd.eq(pd.getAtomicBoolean(), new AtomicBoolean(false));
bpd.eq(pd.getBool(), new Boolean(false));
bpd.eq(pd.getDate(), d);
qb.build();
assertEquals(" wrong number of condition", 16, qb.getConditionsString().size());
assertEquals("atomicBoolean EQUALS false", qb.getConditionsString().get(0));