InitializerImpl implements Initializer { @Override public Initializer setParent(HasInitializers<?> parent) { this.parent = parent; return this; } InitializerImpl(); protected  InitializerImpl(Initializer prototype); @Override Initializer setParent(HasInitializers<?> parent); @Override Optional<HasInitializers<?>> getParent(); @Override List<Import> getImports(); @Override List<String> getCode(); @Override Set<Modifier> getModifiers(); @Override InitializerImpl copy(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test void setParent() { final Class c = Class.of("A"); instance().setParent(c); assertEquals(c, instance().getParent().orElseThrow(NoSuchElementException::new)); }