@Before public void initData() { super.init(); final IEntityType type = this.getSchema().findType("Person"); final IKomeaEntity p1 = this.getMfactory().create(type); p1.set("name", "John"); final IKomeaEntity p2 = this.getMfactory().create(type); p2.set("name", "Bob"); p1.add("children", p2); final IKomeaEntity p3 = this.getMfactory().create(type); p3.set("name", "Bobby"); p2.add("children", p3); this.getStorage().commit(); }