@Test
public void testDateFormatHours() {

  String test = "%c";
  String escapedString = BucketPath.escapeString(
      test, headers, true, Calendar.HOUR_OF_DAY, 12);
  System.out.println("Escaped String: " + escapedString);
  Calendar cal2 = createCalendar(2012, 5, 23, 12, 0, 0, 0, null);
  SimpleDateFormat format = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy");
  Date d = new Date(cal2.getTimeInMillis());
  String expectedString = format.format(d);
  System.out.println("Expected String: " + expectedString);
  Assert.assertEquals(expectedString, escapedString);
}