@Test
public void testGetIntervalFromParameters() {

    String startTime = "2016-01-01";
    String endTime = "2016-02-02";
    DateTimeZone dtz = DateTimeZone.UTC;
    Interval interval = DateTimeUtils.getIntervalFromParameters(startTime, endTime, dtz);
    assertEquals(DateTimeUtils.getDateTimeFromParameter(startTime, dtz), interval.getStart());
    assertEquals(DateTimeUtils.getDateTimeFromParameter(endTime, dtz), interval.getEnd());
}