ECChildClient { public String getAgeInString() { return format(getAgeInDays()); } ECChildClient(String entityId, String gender, String dateOfBirth); boolean isMale(); boolean isFemale(); int getAgeInDays(); String getAgeInString(); String format(int days_since); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void shouldReturnZeroDaysForNullCurrentDate() { ECChildClient child = new ECChildClient("abcd1", "male", null); assertEquals("0d", child.getAgeInString()); }
@Test public void shouldReturnZeroDaysForEmptyCurrentDate() { ECChildClient child = new ECChildClient("abcd1", "male", ""); assertEquals("0d", child.getAgeInString()); }