@Test
    public void testDateHash() throws IOException {
        File tmpDir = temporaryFolder.newFolder();

        ArchiverHandler a = new ArchiverHandler(tmpDir.getAbsolutePath(),
                                                1024, "gzip");
        long now = 1095159244095L;
        long midnight = 1095206400000L;
        assertEquals(2004091410, a.dateHash(now));
        assertEquals(2004091423, a.dateHash(midnight - 1));
        assertEquals(2004091500, a.dateHash(midnight));
        assertEquals(2004091500, a.dateHash(midnight + 1));
        a.close();
    }
Make sure that rollover for dateHash() occurs at midnight, so that
points in time belonging to the same day are in the interval
[00:00:00.000, 23:59:59.999].
logserver/src/test/java/com/yahoo/logserver/handlers/archive/ArchiverHandlerTestCase.java