@Test @Given("model") public Container newParent(Repository repo) { Object $ = repo.newInstance("TEST.Container"); assertNotNull($); assertEquals(Container.class, $.getClass()); return (Container) $; }
@Test @Given("model") public Leaf newChildB(Repository repo) { Object $ = repo.newInstance("TEST.Leaf"); assertNotNull($); assertEquals(Leaf.class, $.getClass()); return (Leaf) $; }