verifyCompareToInstant(new DateTime(2012, 12, 31, 23, 59, 59, 999), quarters, -1, -1, 0, -1);
}
protected void verifyCompareToInstant(DateTime dt, List<QuarterDetail> quarters, int... contains) {
final Iterator<QuarterDetail> itr = quarters.iterator();
for (int q = 0; q < 4; q++) {
final QuarterDetail quarter = itr.next();
assertEquals(q + ": " + dt + " is not between " + quarter.getStart() + " and " + quarter.getEnd(), contains[q], quarter.compareTo(dt));
}
}