LicenseTermImpl implements LicenseTerm { @Override public Optional<HasLicenseTerm<?>> getParent() { return Optional.ofNullable(parent); } 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 getParent() { assertEquals(Optional.empty(), instance().getParent()); }