### Question:
PhenoSetTimeLineImpl implements PhenoSetTimeLine { @Override public PhenotypeComponent current(Date date) { for (PhenotypeComponent current : this.phenosetTimeLine) { if (current.isEffective(date)) { return current; } } return null; } PhenoSetTimeLineImpl(PhenoSet phenoset); @Override PhenoSet phenoset(); @Override List<PhenotypeComponent> getTimeLine(); @Override void insert(PhenotypeComponent newAbnorm); @Override PhenotypeComponent current(Date date); @Override PhenotypeComponent persistDuring(Date start, Date end); @Override List<PhenotypeComponent> occurredDuring(Date start, Date end);  }### Answer:
@Test public void current() throws Exception { assertEquals(hypoglycemia.getId(), glucosetimeLine.current(dateFormat.parse( "2016-12-30 10:33:33")).abnormality()); assertEquals(hypoglycemia.getId(), glucosetimeLine.current(dateFormat.parse( "2017-12-30 10:33:33")).abnormality()); }