}
public void testInsertRelated() {
DataContext context = createDataContext();
DataObject g1 = (DataObject) context.newObject("Generic1");
g1.writeProperty("name", "G1 Name");
DataObject g2 = (DataObject) context.newObject("Generic2");
g2.writeProperty("name", "G2 Name");
g2.setToOneTarget("toGeneric1", g1, true);