}
public void testSQLDate() {
OpenJPAEntityManager pm = getPM(true, true);
startTx(pm);
ProxiesPC pc = pm.find(ProxiesPC.class, _oid);
java.sql.Date date = pc.getSQLDate();
assertNotNull(date);
// dates can lose precision, but make sure same day
assertEquals(_sqlDate.getYear(), date.getYear());
assertEquals(_sqlDate.getMonth(), date.getMonth());
assertEquals(_sqlDate.getDate(), date.getDate());
// make sure proxied
assertTrue(!pm.isDirty(pc));
date.setTime(System.currentTimeMillis() + 1000 * 60 * 60 * 24);
assertTrue(pm.isDirty(pc));
endTx(pm);
assertEquals(date, pc.getSQLDate());
endEm(pm);
}