assertTrue(String.format("Generated date is not before %s", source), value.before(toCalendar(source, format)));
}
@Test
public void randomDate() {
String start = "2011-04-01", end = "2011-04-30";
Calendar value = new DateTimeFunction(toCalendar(start, format), toCalendar(end, format)).generateValue();
assertNotNull("Generated date can not be null", value);
assertTrue(String.format("Generated date is not between %s and %s", start, end), toCalendar(start, format).before(value) && value.before(toCalendar(end, format)));
}