public class TestSelfParent extends BaseTestCase {
@Test
public void test() {
SelfParent root = new SelfParent("root", null);
SelfParent child1 = new SelfParent("child1", root);
SelfParent child11 = new SelfParent("child11", child1);
SelfParent child111 = new SelfParent("child111", child11);
SelfParent child12 = new SelfParent("child12", child1);
SelfParent child2 = new SelfParent("child2", root);
SelfParent child21 = new SelfParent("child21", child2);
SelfParent child22 = new SelfParent("child22", child2);
Ebean.save(root);
Ebean.save(child1);
Ebean.save(child11);
Ebean.save(child111);