assertEquals("parent named key", KeyFactory.stringToKey(ha.getId()).getParent().getName());
commitTxn();
}
public void testInsertWithNullAncestor() {
HasStringAncestorStringPkJDO ha = new HasStringAncestorStringPkJDO(null);
makePersistentInTxn(ha, TXN_START_END);
Key keyWithParent = KeyFactory.stringToKey(ha.getId());
assertNull(keyWithParent.getParent());
}