LicenseTermImpl implements LicenseTerm { @Override public LicenseTerm setParent(HasLicenseTerm<?> parent) { this.parent = parent; return this; } LicenseTermImpl();  LicenseTermImpl(final String text); protected  LicenseTermImpl(final LicenseTerm prototype); @Override LicenseTerm setParent(HasLicenseTerm<?> parent); @Override Optional<HasLicenseTerm<?>> getParent(); @Override String getText(); @Override LicenseTerm setText(String text); @Override LicenseTermImpl copy(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test void setParent() { final File file = File.of("V"); instance().setParent(file); assertEquals(file, instance().getParent().orElseThrow(NoSuchElementException::new)); }