@Test
public void testMatchExpiration() {

    File fileDir = new File("/home/athenz/zms_store");
    File quotaDir = new File("/home/athenz/zms_quota");
    try (FileConnection fileconnection = new FileConnection(fileDir, quotaDir)) {
        assertTrue(fileconnection.matchExpiration(0, null));
        assertFalse(fileconnection.matchExpiration(10, null));
        assertTrue(fileconnection.matchExpiration(100, Timestamp.fromMillis(100)));
        assertFalse(fileconnection.matchExpiration(101, Timestamp.fromMillis(100)));
    }
}