@Test
public void testDateFormatSeconds() {

  String test = "%s";
  String escapedString = BucketPath.escapeString(
      test, headers, true, Calendar.SECOND, 5);
  System.out.println("Escaped String: " + escapedString);
  Calendar cal2 = createCalendar(2012, 5, 23, 13, 46, 30, 0, null);
  String expectedString = String.valueOf(cal2.getTimeInMillis() / 1000);
  System.out.println("Expected String: " + expectedString);
  Assert.assertEquals(expectedString, escapedString);
}