public void testLoadEntityWithCompoundId() throws Exception {
Database db = _category.getDatabase();
db.begin();
ParentWithCompoundId child = (ParentWithCompoundId)
db.load(ParentWithCompoundId.class,
new Identity(new Integer(1), new Integer(1)));
assertNotNull(child);
assertEquals(new Integer(1), child.getId1());
assertEquals(new Integer(1), child.getId2());