ZMSFileMTLSChangeLogStore implements ChangeLogStore { @Override public void setLastModificationTimestamp(String newLastModTime) { changeLogStoreCommon.setLastModificationTimestamp(newLastModTime); } ZMSFileMTLSChangeLogStore(String rootDirectory, final String keyPath, final String certPath,
                                     final String trustStorePath, final String trustStorePassword); @Override boolean supportsFullRefresh(); @Override SignedDomain getLocalSignedDomain(String domainName); @Override SignedDomain getServerSignedDomain(String domainName); @Override void removeLocalDomain(String domainName); @Override void saveLocalDomain(String domainName, SignedDomain signedDomain); @Override List<String> getLocalDomainList(); @Override Set<String> getServerDomainList(); @Override SignedDomains getServerDomainModifiedList(); @Override void setLastModificationTimestamp(String newLastModTime); @Override SignedDomains getUpdatedSignedDomains(StringBuilder lastModTimeBuffer);  }
@Test public void testLastModificationTimestamp() throws InterruptedException, IOException, KeyRefresherException { MockZMSFileMTLSChangeLogStore fstore = new MockZMSFileMTLSChangeLogStore(FSTORE_PATH, keyPath, certPath, trustStorePath, trustStorePassword); ZMSFileChangeLogStoreCommon cstore = new ZMSFileChangeLogStoreCommon(FSTORE_PATH); assertNull(cstore.retrieveLastModificationTime()); final String now = Long.toString(System.currentTimeMillis()); fstore.setLastModificationTimestamp(now); assertEquals(cstore.retrieveLastModificationTime(), now); fstore.setLastModificationTimestamp(null); assertNull(cstore.retrieveLastModificationTime()); }