FileImpl implements File { @Override public File set(Javadoc doc) { this.doc = doc.setParent(this); return this; } FileImpl(String name); protected  FileImpl(File prototype); @Override File setName(String name); @Override String getName(); @Override File set(Javadoc doc); @Override File set(LicenseTerm doc); @Override Optional<Javadoc> getJavadoc(); @Override Optional<LicenseTerm> getLicenseTerm(); @Override List<Import> getImports(); @Override List<ClassOrInterface<?>> getClasses(); @Override FileImpl copy(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test void set() { final Javadoc javadoc = Javadoc.of("Z"); instance().set(javadoc); assertEquals(javadoc, instance().getJavadoc().orElseThrow(NoSuchElementException::new)); }
@Test void testSet() { final LicenseTerm licenseTerm = LicenseTerm.of("Z"); instance().set(licenseTerm); assertEquals(licenseTerm, instance().getLicenseTerm().orElseThrow(NoSuchElementException::new)); }