### Question:
Range implements Serializable { public int getLength() throws ParseException { return getLength(st, ed); } Range();  Range(String st, String ed, String sh, String eh); int getLength(); static int getLength(String smallerDate, String BiggerDate); String getSt(); void setSt(String st); String getEd(); void setEd(String ed); String getSh(); void setSh(String sh); String getEh(); void setEh(String eh); static List<Range> normalize(List<Range> ranges); static List<String> getDays(List<Range> ranges); @Override String toString();  }### Answer:
@Test public void getLength() throws ParseException { Range r1 = new Range(); r1.setSt("2018-01-07"); r1.setEd("2018-01-07"); assertEquals(1, r1.getLength(), 0); }
@Test public void testGetLength() { String st = "2018-01-07", ed = "2018-01-07"; assertEquals(1, Range.getLength(st, ed), 0); st = "2018-01-07"; ed = "2018-01-08"; assertEquals(2, Range.getLength(st, ed), 0); assertEquals(0, Range.getLength(ed, st), 0); }