DecimalFormat secondsFormatter = new DecimalFormat();
secondsFormatter.setMaximumFractionDigits(0);
secondsFormatter.setMaximumIntegerDigits(2);
secondsFormatter.setMinimumIntegerDigits(2);
rdf.setSecondFormatter(secondsFormatter);
String s = rdf.format(new Date(2 * 60L * 60L * 1000L + 122500L));
assertEquals("02:02:02", s);
}
/**
* Check that the equals() method can distinguish all fields.