@Test
public void testDateFormatHours() {
String test = "%c";
String escapedString = BucketPath.escapeString(
test, headers, true, Calendar.HOUR_OF_DAY, 12);
<BUG>System.out.println("Escaped String: " + escapedString);
Calendar cal2 = Calendar.getInstance();
cal2.set(2012, 5, 23, 12, 0, 0);
cal2.set(Calendar.MILLISECOND, 0);
SimpleDateFormat format = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy");
Date d = new Date(cal2.getTimeInMillis());</BUG>
String expectedString = format.format(d);

@Test
public void testDateFormatCache() {
TimeZone utcTimeZone = TimeZone.getTimeZone("UTC");
String test = "%c";
BucketPath.escapeString(
test, headers, utcTimeZone, false, Calendar.HOUR_OF_DAY, 12, false);
String escapedString = BucketPath.escapeString(
test, headers, false, Calendar.HOUR_OF_DAY, 12);
System.out.println("Escaped String: " + escapedString);
SimpleDateFormat format = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy");
Date d = new Date(cal.getTimeInMillis());
String expectedString = format.format(d);
