record.setLastname("Jones");
record.setId1(3);
record.setId2(4);
dao.insertMyObject(record);
MyObjectKey key = new MyObjectKey();
key.setId1(3);
key.setId2(4);
MyObject newRecord = dao.selectMyObjectByPrimaryKey(key);
assertNotNull(newRecord);
assertEquals(record.getFirstname(), newRecord.getFirstname());
assertEquals(record.getLastname(), newRecord.getLastname());