Range implements Serializable { public Date getStartDate() { return startDate; } private  Range(Period period, Date startDate, Date endDate); static Range createCustomRange(Date startDate, Date endDate); static Range parse(String value, DateFormat dateFormat); Period getPeriod(); Date getStartDate(); Date getEndDate(); String getValue(); String getLabel(); @Override String toString(); static final char CUSTOM_PERIOD_SEPARATOR; }
@Test public void testGetStartDate() { assertNull("getStartDate", periodRange.getStartDate()); assertNotNull("getStartDate", customRange.getStartDate()); }