WithLicense extends License implements LicenseInformation { @Override public boolean isEmpty() { return super.isEmpty() || exceptionId.trim().isEmpty(); } WithLicense();  WithLicense(String licenseId, String exceptionId);  WithLicense(String licenseId, String licenseName, String licenseText, String exceptionId,
            String exceptionName, String exceptionText);  WithLicense(String licenseId, String licenseName, String licenseText); @Override String getId(); @Override void setId(String id); @Override String getCommonName(); @Override void setCommonName(String commonName); @Override String getText(); @Override void setText(String text); String getLicenseId(); void setLicenseId(String licenseId); String getLicenseName(); void setLicenseName(String licenseName); String getLicenseText(); void setLicenseText(String licenseText); String getExceptionId(); void setExceptionId(String exceptionId); String getExceptionName(); void setExceptionName(String exceptionName); String getExceptionText(); void setExceptionText(String exceptionText); @Override String evaluate(); @Override boolean isEmpty(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testEmptyWithLicense() { WithLicense withLicense = new WithLicense(); assertThat(withLicense.isEmpty()).isTrue(); }