### Question:
PhenotypeComponentImpl implements PhenotypeComponent { @Override public void changeEffectiveEnd(Date end) { this.end = end; } private  PhenotypeComponentImpl(); private  PhenotypeComponentImpl(@NotNull Date start, @Nullable Date end, @NotNull TermId hpoTerm, boolean isNegated); @Override Date effectiveStart(); @Override Date effectiveEnd(); @Override boolean isEffective(Date timepoint); @Override boolean isPersistingDuring(Date start, Date end); @Override boolean occurredDuring(Date start, Date end); @Override TermId abnormality(); @Override boolean isNegated(); @Override void changeEffectiveStart(Date start); @Override void changeEffectiveEnd(Date end);  }### Answer:
@Test public void changeEffectiveEnd() throws Exception { assertTrue(testComponent.isEffective(dateFormat.parse("2020-09-30 09:30:01"))); testComponent.changeEffectiveEnd(dateFormat.parse("2018-09-30 09:30:01")); assertFalse(testComponent.isEffective(dateFormat.parse("2020-09-30 09:30:01"))); }